/* ─── tokens ─────────────────────────────────────────── */
:root {
    --bg: #f4f6fa;
    --bg2: #ffffff;
    --ink: #0a1628;
    --ink2: #5a6a84;
    --blue: #1d4ed8;
    --blue2: #1e40af;
    --blue-light: #eff6ff;
    --line: #e2e8f0;
    --radius: 10px;
    --max: 1200px;

    --fs-h1: clamp(2.4rem, 5vw, 4.2rem);
    --fs-h2: clamp(1.8rem, 3.5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── demo bar ───────────────────────────────────────── */
.demo-bar {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1.5rem;
    font-size: 0.8rem;
    gap: 1rem;
}
.demo-bar strong { font-weight: 700; margin-right: 0.5rem; color: #fff; }
.demo-links { display: flex; gap: 0.75rem; align-items: center; }
.demo-links a { font-weight: 500; opacity: 0.7; }
.demo-links a:hover { opacity: 1; }
.demo-cta {
    background: var(--blue);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 5px;
    font-weight: 600;
    opacity: 1 !important;
}

/* ─── header ─────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line);
}

.nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand { font-size: 1.35rem; font-weight: 700; color: var(--ink); flex: none; letter-spacing: -0.01em; }
.brand strong { color: var(--blue); }

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a { font-weight: 500; color: var(--ink2); font-size: 0.875rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    background: var(--blue) !important;
    color: #fff !important;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--blue2) !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─── reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── hero ───────────────────────────────────────────── */
.hero {
    background: var(--ink);
    padding: 5rem 1.5rem 0;
}
.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
    padding-bottom: 5rem;
}

.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; }

.hero-top-badge {
    display: inline-block;
    background: rgba(29,78,216,0.15);
    border: 1px solid rgba(29,78,216,0.3);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    width: fit-content;
}

.hero-copy h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.hero-copy h1 .accent { color: #60a5fa; }

.hero-copy > p { color: rgba(255,255,255,0.65); font-size: 1.05rem; line-height: 1.75; max-width: 500px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-guarantee {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.guarantee-item { display: flex; flex-direction: column; gap: 0.2rem; }
.guarantee-item strong { font-size: 1.6rem; font-weight: 800; color: #60a5fa; line-height: 1; }
.guarantee-item span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ─── booking card ───────────────────────────────────── */
.hero-card-wrap { padding-top: 0; }

.booking-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.booking-card-header {
    background: var(--blue);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.booking-card-header strong { color: #fff; font-size: 1rem; font-weight: 700; }
.booking-card-header span { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

.booking-card-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.booking-card-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.booking-card-form input,
.booking-card-form select {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.booking-card-form input:focus,
.booking-card-form select:focus { border-color: var(--blue); }

.card-note { font-size: 0.73rem; color: var(--ink2); text-align: center; }

/* ─── buttons ────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: 0.18s ease;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue2); }
.btn.ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn.ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn.full { width: 100%; text-align: center; font-size: 0.95rem; padding: 1rem; }

/* ─── trust bar ──────────────────────────────────────── */
.trust-bar {
    background: var(--blue);
}
.trust-bar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.trust-bar-inner > div {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.trust-bar-inner > div:last-child { border-right: none; }
.trust-bar-inner strong {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.trust-bar-inner small { font-size: 1.3rem; }
.trust-bar-inner span { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── shared section ─────────────────────────────────── */
.section {
    padding: 6rem 1.5rem;
    max-width: var(--max);
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-head h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-head p { color: var(--ink2); font-size: 1rem; line-height: 1.7; }

.label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

/* ─── specialties ────────────────────────────────────── */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.specialty {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.specialty:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(29,78,216,0.08); }

.spec-icon {
    font-size: 1.3rem;
    color: var(--blue);
    line-height: 1;
}

.specialty h3 { font-size: 1rem; font-weight: 700; }
.specialty p { color: var(--ink2); font-size: 0.85rem; line-height: 1.65; }

/* ─── medici ─────────────────────────────────────────── */
.medici-section {
    background: var(--ink);
    padding: 6rem 1.5rem;
}
.medici-inner {
    max-width: var(--max);
    margin: 0 auto;
}
.medici-section .section-head h2 { color: #fff; }
.medici-section .section-head p { color: rgba(255,255,255,0.6); }
.medici-section .label { color: #60a5fa; }

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.doctor-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
}

.doctor-img img { width: 100%; aspect-ratio: 5/6; object-fit: cover; opacity: 0.9; }

.doctor-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.doctor-spec {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #60a5fa;
}
.doctor-body h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }

.doctor-cred {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.3rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.doctor-cred span { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* ─── struttura ──────────────────────────────────────── */
.struttura-section {
    background: var(--bg2);
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
}
.struttura-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.imgs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
}
.imgs-grid img:first-child { grid-column: 1 / -1; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.imgs-grid img:not(:first-child) { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; width: 100%; }

.struttura-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.struttura-copy h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.struttura-copy > p { color: var(--ink2); font-size: 1rem; line-height: 1.75; }

.struttura-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.struttura-features li {
    font-size: 0.875rem;
    color: var(--ink2);
    padding-left: 1.2rem;
    position: relative;
}
.struttura-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* ─── reviews ────────────────────────────────────────── */
.reviews-section {
    background: var(--bg);
    padding: 6rem 1.5rem;
    max-width: none !important;
}
.reviews-section .section-head { max-width: var(--max); margin: 0 auto 3.5rem; text-align: center; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: var(--max);
    margin: 0 auto;
}

.testimonial {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 0.1em; }
.testimonial p {
    font-style: italic;
    color: var(--ink2);
    font-size: 0.875rem;
    line-height: 1.75;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { font-size: 0.85rem; font-weight: 700; display: block; }
.testimonial-author span { font-size: 0.75rem; color: var(--ink2); }

/* ─── booking section ────────────────────────────────── */
.booking-section {
    background: var(--bg2);
    border-top: 1px solid var(--line);
    padding: 6rem 1.5rem;
}
.booking-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.booking-copy h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1.25rem; }
.booking-copy > p { color: var(--ink2); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }

.booking-info { display: flex; flex-direction: column; gap: 1.25rem; }
.booking-info > div { display: flex; flex-direction: column; gap: 0.25rem; }
.booking-info strong {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}
.booking-info span { color: var(--ink2); font-size: 0.875rem; }

/* ─── booking form ───────────────────────────────────── */
.booking-form {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.booking-form label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus { border-color: var(--blue); }
.booking-form textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-note { font-size: 0.75rem; color: var(--ink2); text-align: center; }

/* ─── footer ─────────────────────────────────────────── */
.footer { background: var(--ink); padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-brand strong { color: #60a5fa; }
.footer-inner > div:first-child p { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin-top: 0.5rem; }

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-nav a:hover { color: #fff; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
}
.footer-contact strong { font-size: 0.85rem; color: #fff; }
.footer-contact span { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.footer-bottom {
    max-width: var(--max);
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: center;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.25); text-align: center; }

/* ─── toast ──────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    transition: transform 0.35s ease;
    z-index: 9999;
    white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-card-wrap { max-width: 480px; }

    .specialties-grid { grid-template-columns: 1fr 1fr; }
    .doctors-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .struttura-inner { grid-template-columns: 1fr; gap: 3rem; }
    .booking-inner { grid-template-columns: 1fr; gap: 3rem; }

    .trust-bar-inner { justify-content: flex-start; }
    .trust-bar-inner > div { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

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

    .section { padding: 4rem 1.25rem; }
    .medici-section,
    .struttura-section,
    .booking-section { padding: 4rem 1.25rem; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 1.5rem;
        gap: 1.2rem;
        z-index: 99;
    }
    .menu-toggle { display: flex; }
    .specialties-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .demo-bar { flex-direction: column; text-align: center; }
    .hero-guarantee { flex-wrap: wrap; gap: 1rem; }
    .doctors-grid { grid-template-columns: 1fr; }
}
