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

html {
    scroll-behavior: smooth;
}

/* Skip to Content - Accessibility */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Navigation Backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

:root {
    /* ---- Svizzero Clinico palette ---- */
    --ink: #15171a;
    --ink-2: #3a4046;
    --ink-3: #5a6066;
    --muted: #7a8085;
    --line: #15171a;
    --line-soft: #e1e5e7;
    --paper: #ffffff;
    --paper-2: #f5f7f8;
    --paper-3: #eef1f2;
    --teal-700: #0f5a4f;
    --teal-500: #1a7a6b;
    --teal-300: #5aa99c;
    --teal-100: #e4efed;
    --warn: #9a6b1a;
    --warn-300: #d9a857;
    --danger: #b2555c;
    --danger-300: #e0a3a7;
    --sans: 'Inter', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --maxw: 1080px;

    /* Legacy variable names, remapped to Svizzero Clinico tokens.
       Kept so the existing component rules below cascade to the new palette
       without renaming every selector. */
    --primary-color: var(--ink);
    --primary-dark: var(--ink);
    --primary-light: var(--teal-100);
    --secondary-color: var(--teal-500);
    --accent-color: var(--teal-500);
    --text-dark: var(--ink);
    --text-medium: var(--ink-2);
    --text-light: var(--muted);
    --white: var(--paper);
    --light-bg: var(--paper-2);
    --warm-beige: var(--paper-3);
    --border-color: var(--line-soft);
    --shadow: none;
    --shadow-hover: none;
}

/* Svizzero Clinico: spigoli vivi ovunque, nessuna eccezione */
*, *::before, *::after {
    border-radius: 0 !important;
}

body {
    font-family: var(--sans);
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    background: var(--paper);
    border-bottom: 1.5px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    text-decoration: none;
    color: inherit;
    line-height: 1.1;
}

.logo h2 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 3px;
}

.logo .subtitle {
    font-family: var(--mono);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.02em;
    font-weight: 400;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    left: 6px;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 17px;
}

.hamburger span:nth-child(3) {
    top: 24px;
}

.hamburger.active span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 26px;
    font-size: 13.5px;
    font-weight: 500;
}

.nav-menu a {
    text-decoration: none;
    color: var(--ink-2);
    padding: 0.5rem 0;
    transition: color 0.15s ease;
}

.nav-menu a:hover {
    color: var(--ink);
}

.nav-menu a.active {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1.5px;
}

/* Hero Section — Swiss split layout */
.hero {
    padding: 0;
    background: var(--paper);
    border-bottom: 1.5px solid var(--line);
}

.hero-content {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 0;
    align-items: stretch;
    max-width: none;
    padding: 0;
}

.hero-text {
    padding: 70px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-kick {
    font-family: var(--mono);
    font-size: 12px;
    color: #e6007e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 46px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 22px;
}

.hero-description {
    font-size: 16px;
    color: var(--ink-2);
    margin-bottom: 30px;
    max-width: 46ch;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 0;
    flex: 0 1 auto;
}

.hero-image {
    display: flex;
    background: var(--paper-3);
    border-left: 1.5px solid var(--line);
    min-height: 420px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center top;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    border: 1.5px solid var(--ink);
    text-align: center;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background-color: var(--paper-2);
}

/* Services Section */
/* Publications section */
.publications {
    padding: 5rem 0;
    background-color: var(--paper);
    border-bottom: 1.5px solid var(--line);
}

.publications-intro {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-2);
    text-align: center;
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2.5rem;
    counter-reset: pub;
    list-style: none;
}

.publication-item {
    position: relative;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line-soft);
    counter-increment: pub;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item::before {
    content: counter(pub, decimal-leading-zero);
    position: absolute;
    left: -2.5rem;
    top: 1.3rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--teal-500);
}

.publication-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 0.4rem 0;
    color: var(--ink);
}

.publication-title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.publication-title a:hover {
    color: var(--teal-700);
    border-bottom-color: var(--teal-500);
}

.publication-meta {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.publications-note {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--line-soft);
    font-size: 0.92rem;
    color: var(--ink-2);
    text-align: center;
}

@media (max-width: 600px) {
    .publications-list {
        padding-left: 0;
    }
    .publication-item {
        padding-left: 2.25rem;
    }
}

.services {
    padding: 5rem 0;
    background-color: var(--paper-2);
    border-bottom: 1.5px solid var(--line);
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border: 1px solid var(--line);
}

.service-card {
    background-color: var(--paper);
    padding: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.12s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background-color: var(--paper-2);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-card h3 {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem 0;
}

.service-card p {
    color: var(--ink-3);
    line-height: 1.6;
    font-size: 0.9rem;
    padding: 0 1.5rem 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--paper);
    border-bottom: 1.5px solid var(--line);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--ink);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--ink-2);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    border-top: 1px solid var(--line-soft);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.trust-badge svg {
    color: var(--teal-500);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.trust-badge span {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    line-height: 1.4;
}

/* CTA Buttons Row */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Secondary Button (for dark backgrounds) */
.btn-cta-secondary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: background-color 0.12s ease, border-color 0.12s ease;
    text-align: center;
    cursor: pointer;
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: var(--ink);
    text-align: center;
    color: var(--white);
}

.cta-insights {
    padding: 4rem 0;
    background-color: var(--ink);
    text-align: center;
    color: var(--white);
}

.cta h2,
.cta-insights h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta p,
.cta-insights p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.cta .btn-primary,
.cta-insights .btn-primary {
    background-color: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

.cta .btn-primary:hover,
.cta-insights .btn-primary:hover {
    background-color: var(--teal-100);
    color: var(--teal-700);
    border-color: var(--teal-100);
}

/* Page Header */
.page-header {
    padding: 48px 0;
    background-color: var(--paper);
    border-bottom: 1.5px solid var(--line);
    text-align: center;
}

.page-header h1 {
    color: var(--ink);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--ink-2);
    font-size: 1.05rem;
}

/* Contact Simple Section */
.contact-simple {
    padding: 4rem 0;
    background-color: var(--paper);
}

.contact-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-simple h2,
.booking-info h2 {
    color: var(--ink);
    margin-bottom: 2rem;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.contact-method {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: var(--teal-500);
    stroke-width: 1.5;
    margin-top: 0.2rem;
}

.contact-method h3 {
    color: var(--ink);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-method p {
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.contact-method a {
    color: var(--teal-700);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-method a:hover {
    color: var(--teal-500);
    border-bottom-color: var(--teal-500);
}

.contact-method .note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Enhanced Contact Page Styles */
.contact-enhanced {
    padding: 5rem 0;
    background-color: var(--paper-2);
    border-top: 1.5px solid var(--line);
}

.contact-grid-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.section-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid var(--line);
}

.section-icon-large {
    width: 40px;
    height: 40px;
    min-width: 40px;
    color: var(--teal-500);
    stroke-width: 1.5;
    background: none;
    padding: 0;
}

.section-header-with-icon h2 {
    color: var(--ink);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Contact Method Cards */
.contact-method-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line-soft);
    transition: background-color 0.12s ease;
    position: relative;
}

.contact-method-card:last-child {
    border-bottom: none;
}

.contact-method-card:hover {
    background-color: var(--paper);
}

.contact-method-card .icon-wrapper {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
}

.contact-method-card .contact-svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: var(--teal-500);
    stroke-width: 1.5;
}

.contact-method-card h3 {
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-method-card p {
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.contact-method-card a {
    color: var(--teal-700);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-method-card a:hover {
    color: var(--teal-500);
    border-bottom-color: var(--teal-500);
}

.contact-method-card .note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: normal;
}

.intramoenia-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal-700);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0.35rem 0 0 0;
}

.badge-free {
    display: inline-block;
    background: var(--teal-100);
    color: var(--teal-700);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.payment-intro {
    color: var(--ink-2);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.payment-intro strong {
    color: var(--ink);
}

.payment-note {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--teal-500);
    margin-top: 0.5rem;
}

.payment-note-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--teal-500);
    stroke-width: 1.5;
}

.payment-note p {
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.payment-note strong {
    color: var(--ink);
}

/* Booking Info Enhanced */
.booking-info-enhanced {
    background: var(--paper);
    padding: 0;
}

.booking-intro {
    color: var(--ink-2);
    margin-bottom: 2rem;
    padding-left: 0.5rem;
    font-size: 1.05rem;
}

/* Booking Steps Container */
.booking-steps-container {
    margin-bottom: 2rem;
    border-top: 1px solid var(--line-soft);
}

.booking-step-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1.5rem 0.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line-soft);
    transition: background-color 0.12s ease;
}

.booking-step-card:hover {
    background: none;
}

.booking-step-card .step-number {
    background: none;
    color: var(--teal-500);
    width: auto;
    height: auto;
    min-width: 2.5rem;
    display: block;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 1.1rem;
    padding-top: 0.1rem;
}

.booking-step-card .step-content h3 {
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.booking-step-card .step-content p {
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0;
}

.booking-step-card .step-content a {
    color: var(--teal-700);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.booking-step-card .step-content a:hover {
    color: var(--teal-500);
    border-bottom-color: var(--teal-500);
}

.booking-step-card .step-content .note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: normal;
    margin-top: 0.35rem;
}

/* Hours Box Enhanced */
.hours-box-enhanced {
    background: var(--paper-2);
    padding: 2rem;
    border: 1px solid var(--line-soft);
    margin: 2rem 0;
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid var(--line);
}

.hours-icon {
    width: 26px;
    height: 26px;
    color: var(--teal-500);
    stroke-width: 1.5;
}

.hours-box-enhanced h3 {
    color: var(--ink);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.hours-box-enhanced .hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 500;
}

.hours-box-enhanced .hour-item:last-child {
    border-bottom: none;
}

.hours-box-enhanced .hour-item span:first-child {
    color: var(--ink);
    font-weight: 600;
}

.time-badge {
    background: var(--paper);
    color: var(--ink-2);
    border: 1px solid var(--line-soft);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--mono);
}

.time-badge.closed {
    background: var(--paper-3);
    color: var(--muted);
}

/* Info Box Enhanced */
.info-box-enhanced {
    background: var(--teal-100);
    padding: 1.5rem;
    border-left: 2px solid var(--teal-500);
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    color: var(--teal-700);
    stroke-width: 1.5;
}

.info-box-enhanced p {
    color: var(--ink);
    line-height: 1.7;
    margin: 0;
}

.info-box-enhanced strong {
    color: var(--teal-700);
    font-weight: 700;
}

/* Booking Info */
.booking-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-soft);
}

.step-number {
    background-color: var(--ink);
    color: var(--white);
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--mono);
    font-size: 1.1rem;
}

.step-content h3 {
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--ink-2);
    line-height: 1.6;
}

.hours-box {
    background-color: var(--paper-2);
    padding: 2rem;
    border: 1px solid var(--line-soft);
    margin: 2rem 0;
}

.hours-box h3 {
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 500;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item span:first-child {
    color: var(--ink);
}

.hour-item span:last-child {
    color: var(--ink-2);
}

.info-box {
    background-color: var(--teal-100);
    padding: 1.5rem;
    border-left: 2px solid var(--teal-500);
    margin-top: 2rem;
}

.info-box p {
    color: var(--ink-2);
    line-height: 1.7;
}

.info-box strong {
    color: var(--teal-700);
}

/* Insights Section */
.insights-intro {
    padding: 3rem 0;
    background-color: var(--paper);
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.8;
}

.insight-article {
    padding: 4rem 0;
    background-color: var(--paper);
    border-top: 1px solid var(--line-soft);
}

.insight-article:nth-child(even) {
    background-color: var(--paper-2);
}

.insight-article h2 {
    color: var(--ink);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    border-bottom: 1.5px solid var(--line);
    padding-bottom: 1rem;
}

.article-content {
    max-width: 900px;
}

.article-content .lead {
    font-size: 1.15rem;
    color: var(--ink-2);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 500;
}

.article-content h3 {
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--ink-2);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--ink-2);
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content strong {
    color: var(--ink);
    font-weight: 600;
}

.article-content .info-box {
    margin: 2.5rem 0;
}

.article-content .info-box h4 {
    color: var(--teal-700);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.article-content .info-box ul {
    margin-left: 1.5rem;
}

/* Footer */
footer {
    background: var(--ink);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    font-size: 0.92rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-section a:hover {
    color: var(--white);
    border-bottom-color: var(--teal-300);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: var(--paper);
        border: 1.5px solid var(--line);
    }

    .navbar .container {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--paper);
        border-left: 1.5px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--line-soft);
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--paper-2);
        color: var(--ink);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        max-width: 320px;
        max-height: 400px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .contact-grid-simple,
    .contact-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-grid {
        grid-template-columns: 1fr !important;
    }

    .section-header-with-icon {
        flex-direction: row;
        gap: 1rem;
    }

    .trust-badges {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 22px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .insight-article h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 280px;
        max-height: 350px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-method,
    .booking-step {
        padding: 1.5rem 1rem;
    }

    .contact-method-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .contact-method-card .icon-wrapper {
        min-width: 50px;
        height: 50px;
        padding: 8px;
    }

    .booking-step-card {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header-with-icon {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-content {
        padding: 0 10px;
    }
}

/* ========================================
   MODERN ENHANCEMENTS & NEW STYLES
======================================== */

/* Single-accent system: legacy multi-accent variables now resolve to the
   one Svizzero Clinico accent (teal) and flat fills (no gradients). */
:root {
    --accent-warm: var(--teal-500);
    --accent-coral: var(--teal-700);
    --accent-sage: var(--teal-300);
    --gradient-1: var(--paper-2);
    --gradient-2: var(--ink);
    --gradient-3: var(--teal-500);
}

/* Page Header with Gradient */
.page-header-gradient {
    padding: 48px 0;
    background-color: var(--ink);
    color: var(--white);
    position: relative;
}

.page-header-gradient::before {
    display: none;
}

.page-header-gradient .container {
    position: relative;
    z-index: 1;
}

.page-header-gradient h1 {
    color: var(--white);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.subtitle-large {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Article meta (publication / review info) */
.article-meta {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-family: var(--mono);
    opacity: 0.7;
    line-height: 1.6;
}

.article-meta time {
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-family: var(--mono);
    opacity: 0.75;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.breadcrumb a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Article Detailed Pages */
.article-detailed {
    background-color: var(--paper);
}

.article-intro {
    padding: 3rem 0;
    background-color: var(--paper-2);
    border-bottom: 1.5px solid var(--line);
    text-align: center;
}

.lead-emphasis {
    font-size: 1.2rem;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

.article-body {
    padding-top: 2rem;
}

/* Content Blocks with Modern Spacing */
.content-block {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.content-block.accent-bg {
    background-color: var(--paper-2);
    border: 1px solid var(--line-soft);
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 940px;
}

/* Icon Headers */
.icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    color: var(--teal-500);
    stroke-width: 1.5;
    padding: 8px;
    background-color: var(--paper-2);
    border: 1px solid var(--line-soft);
}

/* Highlight Boxes with Border Accent */
.highlight-box {
    background-color: var(--paper-2);
    border-left: 2px solid var(--teal-500);
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h3,
.highlight-box h4 {
    color: var(--ink);
    margin-bottom: 1rem;
}

/* Alert Box */
.alert-box {
    background-color: var(--paper-2);
    border-left: 2px solid var(--warn);
    padding: 1.5rem;
    margin: 2rem 0;
}

.alert-box h4 {
    color: var(--warn);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Timeline Styling */
.timeline-box {
    background-color: var(--paper-2);
    border: 1px solid var(--line-soft);
    padding: 2.5rem;
    margin: 2.5rem 0;
}

.timeline-box h2,
.timeline-box h3 {
    color: var(--ink);
    text-align: center;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -10px;
    top: -2px;
    min-width: 36px;
    height: 36px;
    padding: 0 0.45rem;
    box-sizing: border-box;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.78rem;
    white-space: nowrap;
    border: 4px solid var(--paper-2);
}

.timeline-content h3,
.timeline-content h4 {
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.timeline-content p,
.timeline-content ul {
    color: var(--ink-2);
}

/* Method Grid (for contraception methods, etc) */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border: 1px solid var(--line);
    margin: 2rem 0;
}

.method-card {
    background-color: var(--paper);
    padding: 2rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.12s ease;
}

.method-card:hover {
    background-color: var(--paper-2);
}

.method-card h3 {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.method-card h4 {
    color: var(--teal-700);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.method-card p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.method-card strong {
    color: var(--ink);
}

/* Symptoms Grid */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.symptom-card {
    background-color: var(--paper-2);
    padding: 1.5rem;
    border-left: 2px solid var(--teal-500);
}

.symptom-card h4 {
    color: var(--ink);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.symptom-card p {
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background-color: var(--paper-2);
    padding: 2rem;
    border-top: 1.5px solid var(--line);
}

.tip-card h4 {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--ink-2);
}

.tip-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal-500);
    font-weight: bold;
}

/* Treatment Section */
.treatment-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background-color: var(--paper);
    border: 1px solid var(--line-soft);
}

.treatment-section h3 {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.treatment-section.accent-bg {
    background-color: var(--paper-2);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros,
.cons {
    padding: 1.5rem;
    background-color: var(--paper-2);
}

.pros {
    border-left: 2px solid var(--teal-500);
}

.cons {
    border-left: 2px solid var(--warn);
}

.pros h4 {
    color: var(--teal-700);
    margin-bottom: 1rem;
}

.cons h4 {
    color: var(--warn);
    margin-bottom: 1rem;
}

/* Wellness Grid */
.wellness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.wellness-card {
    background-color: var(--paper-2);
    padding: 2rem;
    border-top: 1.5px solid var(--line);
}

.wellness-card h4 {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Alert Grid */
.alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.alert-item {
    background-color: var(--paper-2);
    padding: 1.5rem;
    border-left: 2px solid var(--warn);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-item p {
    color: var(--ink);
    margin: 0;
    font-weight: 500;
}

.emphasis-text {
    background-color: var(--teal-100);
    padding: 1.5rem;
    border-left: 2px solid var(--teal-500);
    margin-top: 2rem;
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 500;
}

/* CTA Article */
.cta-article {
    background-color: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 3rem;
    margin: 4rem 0 3rem;
}

.cta-article h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-article p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.cta-article .btn-primary {
    background-color: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

.cta-article .btn-primary:hover {
    background-color: var(--teal-100);
    color: var(--teal-700);
    border-color: var(--teal-100);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1.5px solid var(--line);
}

.related-articles h3 {
    color: var(--ink);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    border: 1px solid var(--line);
}

.related-card {
    background-color: var(--paper);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.12s ease;
}

.related-card:hover {
    background-color: var(--paper-2);
}

.related-card h4 {
    color: var(--ink);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.related-card p {
    color: var(--ink-2);
    line-height: 1.6;
}

/* ========================================
   APPROFONDIMENTI PAGE - MODERN REDESIGN
======================================== */

/* Hero Section */
.approfondimenti-hero {
    background-color: var(--ink);
    padding: 4.5rem 0;
    position: relative;
}

.approfondimenti-hero::before {
    display: none;
}

.hero-content-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.badge-pill {
    display: inline-block;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.25rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.approfondimenti-hero h1 {
    font-size: 38px;
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--white);
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto;
}

/* Topics Section */
.topics-section {
    padding: 5rem 0;
    background-color: var(--paper);
}

.topics-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border: 1px solid var(--line);
    max-width: 1200px;
    margin: 0 auto;
}

/* Topic Cards */
.topic-card {
    background-color: var(--paper);
    padding: 2.5rem;
    position: relative;
    transition: background-color 0.12s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.topic-card:hover {
    background-color: var(--paper-2);
}

/* Card Header */
.card-header {
    margin-bottom: 1.5rem;
}

.card-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal-700);
    background: var(--teal-100);
    padding: 0.3rem 0.7rem;
    margin-bottom: 1rem;
}

.topic-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Card Content */
.card-description {
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Card Highlights */
.card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: inline-block;
    background: var(--paper-2);
    color: var(--ink-2);
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--line-soft);
}

/* Card Button */
.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    pointer-events: none;
}

.card-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    transition: transform 0.2s ease;
}

.topic-card:hover .card-btn svg {
    transform: translateX(4px);
}

/* Info Banner */
.info-banner {
    padding: 0;
    margin: 4rem 0;
}

.banner-content {
    background-color: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--teal-500);
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.banner-text h3 {
    color: var(--ink);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.banner-text p {
    color: var(--ink-2);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

/* CTA Simple */
.cta-simple {
    background-color: var(--paper);
    padding: 5rem 0;
    text-align: center;
    border-top: 1.5px solid var(--line);
}

.cta-simple h2 {
    color: var(--ink);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-simple p {
    color: var(--ink-2);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--paper);
    border-top: 1.5px solid var(--line);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 0;
}

.faq-item[open] {
    border-bottom-color: var(--line);
}

.faq-question {
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.15s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--teal-500);
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-question:hover {
    color: var(--teal-700);
}

.faq-answer {
    padding: 0 0 1.5rem;
    color: var(--ink-2);
    line-height: 1.8;
}

.faq-answer p {
    margin: 0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .approfondimenti-hero {
        padding: 3.5rem 0;
    }

    .approfondimenti-hero h1 {
        font-size: 28px;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .topics-masonry {
        grid-template-columns: 1fr;
    }

    .topic-card {
        padding: 2rem;
    }

    .banner-content {
        flex-direction: column;
        padding: 2rem;
    }

    .cta-simple {
        padding: 3rem 0;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .page-header-gradient h1 {
        font-size: 28px;
    }

    .subtitle-large {
        font-size: 1rem;
    }

    .icon-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline {
        padding-left: 0.5rem;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }
}

@media (max-width: 480px) {
    .approfondimenti-hero h1 {
        font-size: 28px;
    }

    .badge-pill {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .topic-card {
        padding: 1.5rem;
    }

    .topic-card h2 {
        font-size: 1.5rem;
    }

    .banner-content {
        padding: 1.5rem;
    }

    .content-block,
    .content-block.accent-bg {
        padding: 2rem 1rem;
    }

    .cta-article {
        padding: 2rem 1.5rem;
    }
}

/* =========================================================
   SATELLITE TOOLS / CALCULATORS
   Used by: strumenti.html + 5 calculator pages
   ========================================================= */

/* Tool hub (strumenti.html) */
.tools-hub {
    padding: 4rem 0 5rem;
    background-color: var(--paper-2);
    border-bottom: 1.5px solid var(--line);
}

.tools-hub-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--ink-2);
    line-height: 1.7;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--line);
}

.tool-card {
    display: flex;
    flex-direction: column;
    background-color: var(--paper);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2rem 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.tool-card:hover {
    background-color: var(--paper-2);
}

.tool-card-icon {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-500);
    margin-bottom: 1.25rem;
}

.tool-card-icon svg {
    width: 28px;
    height: 28px;
}

.tool-card h3 {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.tool-card p {
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
    flex-grow: 1;
}

.tool-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--teal-700);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.8rem;
}

.tool-card-cta::after {
    content: "→";
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-cta::after {
    transform: translateX(4px);
}

/* Calculator page layout */
.tool-page {
    background-color: var(--paper);
}

.tool-container {
    padding: 3rem 0 4rem;
    background-color: var(--paper-2);
    border-bottom: 1.5px solid var(--line);
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.2fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 800px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}

/* Form card (left) */
.tool-form {
    background-color: var(--paper);
    border: 1.5px solid var(--line);
    padding: 2rem;
}

.tool-form h2 {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.tool-form-section {
    margin-bottom: 1.5rem;
}

.tool-form-section:last-child {
    margin-bottom: 0;
}

.tool-form-section > label,
.tool-form-section > .legend {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tool-form-section .help-text {
    font-size: 0.82rem;
    color: var(--ink-3);
    margin: 0.4rem 0 0;
    line-height: 1.45;
}

.tool-form input[type="date"],
.tool-form input[type="number"],
.tool-form input[type="text"],
.tool-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid var(--line-soft);
    background-color: var(--paper);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.tool-form input:focus,
.tool-form select:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px var(--teal-100);
}

/* Slider */
.tool-form-slider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-form-slider input[type="range"] {
    width: 100%;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--line-soft);
    outline: none;
    cursor: pointer;
}

.tool-form-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: var(--teal-500);
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.tool-form-slider input[type="range"]::-webkit-slider-thumb:hover {
    background-color: var(--teal-700);
}

.tool-form-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background-color: var(--teal-500);
    cursor: pointer;
    border: none;
}

.slider-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.88rem;
    color: var(--ink-3);
}

.slider-value-row .current-value {
    font-family: var(--mono);
    color: var(--teal-700);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Radio / segmented */
.tool-form-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-form-segmented label {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 110px;
    cursor: pointer;
}

.tool-form-segmented input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tool-form-segmented .seg {
    display: block;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--line-soft);
    background-color: var(--paper);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: all 0.2s ease;
}

.tool-form-segmented label:hover .seg {
    border-color: var(--teal-500);
}

.tool-form-segmented input[type="radio"]:checked + .seg {
    background-color: var(--teal-500);
    color: var(--paper);
    border-color: var(--teal-500);
}

.tool-form-segmented input[type="radio"]:focus-visible + .seg {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

/* Checkbox grid */
.tool-form-checkboxes {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--line-soft);
}

.tool-form-checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--ink-2);
    transition: background-color 0.2s ease;
}

.tool-form-checkboxes label:not(:last-child) {
    border-bottom: 1.5px solid var(--line-soft);
}

.tool-form-checkboxes label:hover {
    background-color: var(--paper-2);
}

.tool-form-checkboxes input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--teal-500);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Result panel (right) */
.tool-result-panel {
    background-color: var(--ink);
    color: var(--paper);
    padding: 2rem;
    position: sticky;
    top: 1.5rem;
}

.tool-result-panel h2 {
    color: var(--paper);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin: 0 0 1rem;
}

.result-primary {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    word-wrap: break-word;
}

.result-primary .big-number {
    font-family: var(--mono);
    font-size: 3.2rem;
    line-height: 1;
    display: inline-block;
}

.result-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 1.5rem;
    line-height: 1.45;
    color: var(--paper-3);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-grid-item .label {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.25rem;
}

.result-grid-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.result-grid-item .unit {
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 400;
}

/* Result classification chip (BMI, etc.) */
.result-chip {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--paper);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.result-chip.is-warning {
    border-color: var(--warn-300);
    color: var(--warn-300);
}

.result-chip.is-alert {
    border-color: var(--danger-300);
    color: var(--danger-300);
}

/* Result actions (share + cta) */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    background-color: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.result-cta:hover {
    background-color: var(--teal-100);
}

.result-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background-color: transparent;
    color: var(--paper);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.result-share-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Probability bar (ovulation page) */
.probability-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
}

.probability-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.85rem;
}

.probability-bar-row .day-label {
    opacity: 0.85;
}

.probability-bar-track {
    position: relative;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.probability-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.45);
    transition: width 0.4s ease;
}

.probability-bar-row .pct {
    text-align: right;
    font-family: var(--mono);
    font-weight: 600;
}

.probability-bar-row.is-peak .probability-bar-fill {
    background-color: var(--teal-300);
}

/* Pregnancy timeline (data parto page) */
.timeline-strip {
    margin-top: 1rem;
}

.timeline-strip-progress {
    position: relative;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.75rem;
}

.timeline-strip-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--teal-300);
    transition: width 0.4s ease;
}

.timeline-strip-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.milestones-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.milestones-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.milestones-list li::before {
    content: "—";
    color: var(--teal-300);
    flex-shrink: 0;
    font-family: var(--mono);
}

/* Quiz steps (screening planner) */
.quiz-steps {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.quiz-step-dot {
    flex: 1;
    height: 2px;
    background-color: var(--line-soft);
    transition: background-color 0.3s ease;
}

.quiz-step-dot.is-active,
.quiz-step-dot.is-done {
    background-color: var(--teal-500);
}

.quiz-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.quiz-nav button {
    padding: 0.7rem 1.4rem;
    border: 1.5px solid var(--line);
    background-color: var(--paper);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.quiz-nav button:hover {
    background-color: var(--paper-2);
}

.quiz-nav button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.quiz-nav button.primary {
    background-color: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.quiz-nav button.primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
}

/* Recommendations list (output of screening quiz) */
.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background-color: rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--paper);
}

.recommendation-item h4 {
    margin: 0 0 0.3rem;
    color: var(--paper);
    font-size: 1rem;
}

.recommendation-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
    color: var(--paper-3);
}

.recommendation-item.is-now {
    border-left-color: var(--warn-300);
}

.recommendation-item.is-future {
    border-left-color: rgba(255, 255, 255, 0.35);
}

/* Tool explanation section */
.tool-explanation {
    padding: 4rem 0;
    background-color: var(--paper);
}

.tool-explanation .container {
    max-width: 900px;
}

.tool-explanation h2 {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.7rem;
    margin: 0 0 1.5rem;
}

.tool-explanation h3 {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 2rem 0 0.8rem;
}

.tool-explanation p {
    line-height: 1.7;
    color: var(--ink-2);
    margin: 0 0 1rem;
    font-size: 1rem;
}

.tool-references {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--line);
}

.tool-references h3 {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

.tool-references ol {
    margin: 0;
    padding-left: 1.4rem;
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.tool-references li {
    margin-bottom: 0.5rem;
}

.tool-references a {
    color: var(--teal-700);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.tool-references a:hover {
    border-bottom-color: var(--teal-500);
}

/* Disclaimer */
.tool-disclaimer {
    background-color: var(--paper-2);
    border-left: 2px solid var(--warn);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.tool-disclaimer strong {
    color: var(--ink);
}

/* Empty state inside result panel before any input */
.result-empty-state {
    text-align: center;
    padding: 1rem 0;
    opacity: 0.85;
}

.result-empty-state p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Mobile tweaks */
@media (max-width: 800px) {
    .tool-result-panel {
        position: static;
    }
    .tool-form,
    .tool-result-panel {
        padding: 1.5rem;
    }
    .result-primary {
        font-size: 1.7rem;
    }
    .result-primary .big-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .probability-bar-row {
        grid-template-columns: 64px 1fr 44px;
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline callout box used to cross-link from articles to satellite tools */
.tool-callout {
    background-color: var(--paper-2);
    border-left: 2px solid var(--teal-500);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.tool-callout h3 {
    color: var(--ink);
    font-weight: 600;
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}
.tool-callout p {
    margin: 0 0 0.75rem;
    color: var(--ink-2);
    line-height: 1.55;
}
.tool-callout ul {
    margin: 0;
    padding-left: 1.4rem;
}
.tool-callout li {
    margin-bottom: 0.5rem;
    line-height: 1.55;
    color: var(--ink-2);
}
.tool-callout a {
    color: var(--teal-700);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease;
}
.tool-callout a:hover {
    border-bottom-color: var(--teal-500);
}

/* =========================================================
   BIRTH LIKELIHOOD CURVE (calcolo-data-parto.html)
   Displays the probability density of spontaneous delivery
   per gestational week, based on Smith 2001 (Hum Reprod).
   Renders inside the gradient result-panel; uses white/cream
   tones plus a yellow accent for "you are here".
   ========================================================= */

.birth-likelihood {
    margin: 1.4rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bl-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.bl-svg-container {
    width: 100%;
    line-height: 0;
}

.birth-likelihood-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
}

/* Coloured zones (under the curve, on top of the panel gradient) */
.bl-zone-pre   { fill: rgba(255, 130, 130, 0.18); }
.bl-zone-early { fill: rgba(255, 195, 100, 0.16); }
.bl-zone-full  { fill: rgba(255, 255, 255, 0.12); }
.bl-zone-late  { fill: rgba(255, 195, 100, 0.16); }
.bl-zone-post  { fill: rgba(255, 130, 130, 0.18); }

/* The probability curve itself */
.bl-curve-fill {
    fill: rgba(255, 255, 255, 0.42);
}
.bl-curve-stroke {
    fill: none;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Vertical reference markers */
.bl-marker-dpp-line {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.5;
    stroke-dasharray: 4, 3;
}
.bl-marker-dpp-label {
    fill: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bl-marker-current-line {
    stroke: var(--warn-300);
    stroke-width: 2.5;
}
.bl-marker-current-dot {
    fill: var(--warn-300);
}
.bl-marker-current-label {
    fill: var(--warn-300);
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.bl-axis-label {
    fill: rgba(255, 255, 255, 0.75);
    font-size: 10.5px;
    font-family: inherit;
}

/* Legend below the curve */
.bl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.74rem;
    margin-top: 0.6rem;
    opacity: 0.92;
}
.bl-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.bl-legend-swatch {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.bl-swatch-pre   { background: rgba(255, 130, 130, 0.55); }
.bl-swatch-term  { background: rgba(255, 255, 255, 0.55); }
.bl-swatch-post  { background: rgba(255, 195, 100, 0.65); }

.bl-summary {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.92;
}
.bl-summary strong {
    font-weight: 700;
    color: var(--warn-300);
}

/* =========================================================
   Design-pass helpers: term definitions + reference ranges
   ========================================================= */

/* Inline glossary term — dotted underline, native tooltip + visible explanation block */
.term {
    border-bottom: 1px dotted var(--teal-500);
    cursor: help;
    text-decoration: none;
}

/* Section sub-label with subtitle + help line all together */
.field-label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.field-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-3);
    margin-bottom: 0.55rem;
    line-height: 1.4;
    font-weight: 400;
}

/* Reference range chip (for lab values like CA-125, HE4) */
.ref-range {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--teal-100);
    color: var(--teal-700);
    padding: 0.15rem 0.55rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.35rem 0;
}
.ref-range::before {
    content: "ⓘ";
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Number input with unit suffix (visual indicator only) */
.input-with-unit {
    position: relative;
}
.input-with-unit input {
    padding-right: 4.5rem !important;
}
.input-with-unit .unit-suffix {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Expandable details inside form (e.g. "Cos'è l'iperandrogenismo?") */
details.form-explainer {
    background-color: var(--paper-2);
    border: 1px solid var(--line-soft);
    padding: 0.6rem 0.9rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-2);
    line-height: 1.5;
}
details.form-explainer summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--teal-700);
    list-style: none;
    padding: 0.15rem 0;
}
details.form-explainer summary::before {
    content: "+ ";
    font-family: var(--mono);
    display: inline-block;
}
details.form-explainer[open] summary::before {
    content: "− ";
}
details.form-explainer summary::-webkit-details-marker {
    display: none;
}
details.form-explainer p {
    margin: 0.5rem 0 0;
}
details.form-explainer ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}
