/* ==========================================================================
   Studio Dentistico Lesti — Design system
   Mobile-first · Accessible (WCAG 2.1 AA) · No external dependencies
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --c-primary:        #0e6f69;
    --c-primary-dark:   #0a504b;
    --c-primary-soft:   #e4f1ef;
    --c-emergency:      #b3342b;
    --c-emergency-dark: #8f2a23;
    --c-ink:            #15302d;
    --c-muted:          #4c6663;
    --c-line:           #d8e6e3;
    --c-bg:             #ffffff;
    --c-bg-soft:        #f3f8f7;
    --c-white:          #ffffff;

    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

    --radius:    14px;
    --radius-lg: 22px;
    --shadow:    0 10px 30px rgba(10, 80, 75, .10);
    --shadow-lg: 0 18px 50px rgba(10, 80, 75, .16);

    --container: 72rem;
    --header-h:  4.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; background: var(--c-primary-dark); overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.18; color: var(--c-ink); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }

:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 200;
    background: var(--c-primary-dark);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.75rem;               /* ≥44px touch target */
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }

.btn--emergency { background: var(--c-emergency); color: #fff; box-shadow: var(--shadow); }
.btn--emergency:hover { background: var(--c-emergency-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.btn--light { background: #fff; color: var(--c-emergency-dark); }
.btn--light:hover { background: #f6e9e7; color: var(--c-emergency-dark); }

.btn--sm { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 3.25rem; padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- Shared bits ---------- */
.kicker {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: .9rem;
}
.kicker--light { color: #ffd9d4; }
.lead { font-size: 1.16rem; color: var(--c-muted); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--c-bg-soft); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section__head .lead { margin-top: .8rem; }
.section h2 + .lead, .cv-block h2 { margin-top: .4rem; }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--c-primary); margin-top: .2rem; }

/* ---------- Topbar (24H emergency) ---------- */
.topbar {
    background: var(--c-primary-dark);
    color: #dff0ee;
    font-size: .92rem;
    padding: .5rem 0;
}
.topbar__row { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; justify-content: space-between; align-items: center; }
.topbar__emergency { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__emergency svg { width: 1rem; height: 1rem; flex: none; }
.topbar a { color: #fff; }
.topbar a:hover { color: #fff; opacity: .85; }
.topbar__open { opacity: .85; }
@media (max-width: 40rem) { .topbar__open { display: none; } }

/* ---------- Site header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 80, 75, .10); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--c-ink); }
.brand__tag { font-size: .78rem; color: var(--c-muted); }
@media (max-width: 26rem) { .brand__tag { display: none; } }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.nav__list a { color: var(--c-ink); text-decoration: none; font-weight: 500; }
.nav__list a:hover { color: var(--c-primary-dark); }
.nav__list a[aria-current="page"] { color: var(--c-primary-dark); border-bottom: 2px solid var(--c-primary); }
.nav__cta a { color: #fff; }
.nav__cta a:hover { color: #fff; }

.nav__lang { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--c-muted); }
.nav__lang a { font-weight: 700; padding: .25rem .15rem; }
.nav__lang a.is-active { color: var(--c-primary-dark); border-bottom: 2px solid var(--c-primary); }

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem; height: 2.75rem;
    padding: .6rem;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 56rem) {
    .nav-toggle { display: flex; }
    .nav__list {
        position: fixed;
        inset: calc(var(--header-h)) 0 auto 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--shadow-lg);
        padding: .5rem 1.25rem 1.25rem;
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .nav__list.is-open { transform: translateY(0); visibility: visible; }
    .nav__list li { border-top: 1px solid var(--c-line); }
    .nav__list li:first-child { border-top: 0; }
    .nav__list a { display: block; padding: .85rem .25rem; }
    .nav__list a[aria-current="page"] { border-bottom: 0; color: var(--c-primary); }
    .nav__cta { margin-top: .6rem; }
    .nav__cta a { display: inline-flex; }
    .nav__lang { padding: .8rem .25rem 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--c-bg-soft), var(--c-bg)); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__content .lead { margin-top: 1.1rem; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .55rem; font-weight: 500; }
.hero__points li { display: flex; gap: .6rem; align-items: center; }
.hero__points svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--c-primary); }

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
    position: absolute;
    left: 1rem; bottom: 1rem;
    max-width: 19rem;
    display: grid;
    gap: .15rem;
    background: #fff;
    border-left: 5px solid var(--c-emergency);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .9rem 1.1rem;
    text-decoration: none;
    color: var(--c-ink);
}
.hero__badge:hover { color: var(--c-ink); transform: translateY(-2px); }
.hero__badge-title { font-weight: 800; color: var(--c-emergency); letter-spacing: .04em; }
.hero__badge-text { font-size: .92rem; color: var(--c-muted); }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--c-line); padding: 2rem 0; background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 48rem) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.trust__value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--c-primary-dark); }
.trust__label { font-size: .95rem; color: var(--c-muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 36rem)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem)  { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .8rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.card__icon {
    width: 3.5rem; height: 3.5rem;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--c-primary-soft);
    color: var(--c-primary-dark);
}
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card h3 { margin-top: .3rem; }
.card p { color: var(--c-muted); font-size: .97rem; line-height: 1.6; }

/* ---------- Emergency band ---------- */
.emergency {
    background: linear-gradient(135deg, var(--c-emergency), var(--c-emergency-dark));
    color: #fff;
    padding: clamp(2.8rem, 6vw, 4.5rem) 0;
    text-align: center;
}
.emergency__grid {
    display: grid;
    gap: 2rem;
    justify-items: center;
    max-width: 48rem;
    margin: 0 auto;
}
.emergency h2 { color: #fff; margin-bottom: 1rem; }
.emergency p { color: #fbe4e1; margin-bottom: .8rem; }
.emergency__note { font-size: .92rem; opacity: .9; margin-top: 1rem; }
.emergency__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.emergency__phone a {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: .02em;
}
.emergency__phone a:hover { text-decoration: underline; }

/* ---------- Split sections (studio / doctor) ---------- */
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 56rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media--portrait img { max-width: 26rem; margin-inline: auto; }
.split__content { display: flex; flex-direction: column; }
.split__content p + p { margin-top: .8rem; }
.split__content .lead { margin-top: .9rem; }
.split__content .btn { margin-top: 1.6rem; align-self: flex-start; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 42rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.contact-card h3 { color: var(--c-primary-dark); font-size: .95rem; }
.contact-card__rows { display: flex; flex-direction: column; gap: .6rem; }
.contact-card__row { display: flex; flex-direction: column; gap: .15rem; font-size: .93rem; }
.contact-card__label { font-weight: 600; font-size: .82rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-card address { font-style: normal; line-height: 1.5; }
.contact-card__phone { font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.contact-card__note { font-size: .85rem; color: var(--c-muted); margin-top: .2rem; }

.hours-list { list-style: none; padding: 0; width: 100%; }
.hours-list li { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--c-line); font-size: .9rem; line-height: 1.5; }
.hours-list li:last-child { border-bottom: none; }
.hours-list span:first-child { color: var(--c-muted); text-align: left; }
.hours-list span:last-child { font-weight: 600; text-align: right; white-space: nowrap; }

.contact-cta { display: grid; gap: 1.3rem; grid-template-columns: 1fr; margin-top: 1.3rem; }
@media (min-width: 42rem) { .contact-cta { grid-template-columns: 1fr 1fr; } }
.contact-cta .btn { justify-self: center; }

/* Contact page layout */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 42rem) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-mailto { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.contact-mailto h2 { font-size: 1.4rem; }
.contact-mailto p { color: var(--c-muted); line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary-dark); color: #cfe6e3; margin-top: 0; overflow: hidden; }
.site-footer__grid { display: grid; gap: .6rem; padding: 1rem 0 .6rem; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.site-footer__col { font-size: .8rem; padding: 0 1.5rem; }
.site-footer__col:first-child { padding-left: 0; }
.site-footer__col:last-child { padding-right: 0; }
.site-footer__name { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: #fff; margin-bottom: .2rem; }
.site-footer p, .site-footer address, .site-footer li, .site-footer a { font-size: .8rem; }
.site-footer__heading { font-weight: 700; color: #fff; margin-bottom: .2rem; letter-spacing: .03em; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .15rem; }
.site-footer a { color: #cfe6e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.35; }
.site-footer__hours { list-style: none; padding: 0; display: grid; gap: .15rem; }
.site-footer__hours li { display: grid; grid-template-columns: auto 1fr; gap: .5rem; line-height: 1.3; }
.site-footer__hours li span:first-child { font-weight: 500; white-space: nowrap; }
.site-footer__hours li span:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .18); padding: .5rem 0 .6rem; font-size: .75rem; display: grid; gap: .15rem; opacity: .9; }
.site-footer__legal p { font-size: .75rem; }
.site-footer__credit { display: flex; align-items: center; gap: .5rem; margin-top: .1rem; flex-wrap: wrap; }
.site-footer__credit-logo { height: 5rem; width: auto; vertical-align: middle; transition: opacity .2s; }
.site-footer__credit-logo:hover { opacity: .7; }

/* ---------- Floating 24H call button ---------- */
.fab-call {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 3.4rem;
    padding: .9rem 1.35rem;
    border-radius: 999px;
    background: var(--c-emergency);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(179, 52, 43, .45);
    animation: fab-pulse 2.6s ease-in-out infinite;
}
.fab-call svg { width: 1.35rem; height: 1.35rem; }
.fab-call:hover { background: var(--c-emergency-dark); color: #fff; }
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(179, 52, 43, .45), 0 0 0 0 rgba(179, 52, 43, .5); }
    50%      { box-shadow: 0 12px 30px rgba(179, 52, 43, .45), 0 0 0 12px rgba(179, 52, 43, 0); }
}
@media (max-width: 30rem) { .fab-call span { display: none; } .fab-call { padding: 1rem; } }

/* ==========================================================================
   CV page
   ========================================================================== */
.cv-hero { background: linear-gradient(180deg, var(--c-bg-soft), var(--c-bg)); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cv-hero__grid { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 56rem) { .cv-hero__grid { grid-template-columns: 22rem 1fr; } }
.cv-hero__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cv-hero__content .lead { margin: .5rem 0 1rem; color: var(--c-primary-dark); font-weight: 600; }
.cv-hero__content .btn { margin-top: 1.6rem; }

.cv-facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.cv-facts li { display: flex; gap: .6rem; align-items: center; font-weight: 500; }
.cv-facts svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--c-primary); }

.cv-columns { display: grid; gap: 2.6rem; }
@media (min-width: 56rem) { .cv-columns { grid-template-columns: 1fr 1fr; } .cv-columns--three { grid-template-columns: repeat(3, 1fr); } }
.cv-block h2 { margin-bottom: 1.4rem; padding-bottom: .6rem; border-bottom: 3px solid var(--c-primary-soft); }

/* Timeline */
.timeline { list-style: none; padding: 0; position: relative; margin-left: .5rem; }
.timeline::before { content: ""; position: absolute; left: .4rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--c-line); }
.timeline__item { position: relative; padding: 0 0 1.8rem 2rem; }
.timeline__item::before {
    content: "";
    position: absolute;
    left: 0; top: .4rem;
    width: .85rem; height: .85rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--c-primary);
}
.timeline__period {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-primary-dark);
    background: var(--c-primary-soft);
    border-radius: 999px;
    padding: .2rem .8rem;
    margin-bottom: .45rem;
}
.timeline__place { font-weight: 600; color: var(--c-muted); margin: .15rem 0 .3rem; }

/* Skill chips */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.chip {
    background: #fff;
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-primary);
    border-radius: 999px;
    padding: .5rem 1.05rem;
    font-weight: 500;
    font-size: .95rem;
}

/* Tick list / languages */
.ticklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticklist li { position: relative; padding-left: 1.6rem; }
.ticklist li::before { content: "✓"; position: absolute; left: 0; color: var(--c-primary); font-weight: 800; }

.lang-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.lang-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--c-line); padding-bottom: .45rem; }
.lang-list span { color: var(--c-muted); }

/* Quote + CTA */
.quote {
    margin: 1.4rem 0 0;
    padding: 1.6rem 2rem;
    background: #fff;
    border-left: 5px solid var(--c-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--c-primary-dark);
}
.cv-cta { text-align: center; margin-top: 3.2rem; display: grid; gap: .9rem; justify-items: center; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .contact-layout { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-info { display: grid; gap: 1.3rem; }

.form {
    display: grid;
    gap: 1.15rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
}
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
    width: 100%;
    font: inherit;
    color: inherit;
    padding: .75rem .9rem;
    border: 1.5px solid var(--c-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(14, 111, 105, .18);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field__hint { font-size: .88rem; color: var(--c-muted); margin-top: .3rem; }
.field__error { margin-top: .35rem; font-size: .9rem; font-weight: 600; color: var(--c-emergency-dark); }
.field [aria-invalid="true"] { border-color: var(--c-emergency); }

.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--c-primary); }

.hp-field {
    position: absolute;
    left: -100vw;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    font-weight: 600;
    border-left: 5px solid;
}
.alert--success { background: #e7f5ec; border-color: #2e8b57; color: #1d5c3a; }
.alert--error { background: #fbe9e7; border-color: var(--c-emergency); color: var(--c-emergency-dark); }

.form__note { font-size: .95rem; color: var(--c-muted); margin-top: 1rem; }

/* ---------- 404 page ---------- */
.nf { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.nf__code {
    font-family: var(--font-head);
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 700;
    color: var(--c-primary);
    opacity: .25;
    line-height: 1;
    margin-bottom: 1rem;
}
.nf h1 { margin-bottom: 1rem; }
.nf .lead { max-width: 36rem; margin: 0 auto 2rem; }
.nf__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Print ---------- */
@media print {
    .topbar, .site-header, .fab-call, .site-footer, .hero__cta, .cv-cta, .emergency__cta { display: none !important; }
    body { color: #000; }
}
