/* =========================================================
   BTD srl — Design System
   Minimalismo editoriale · off-white + navy + cobalto
   ========================================================= */

:root {
    /* Colori */
    --navy:        #0b1f3a;   /* blu scuro principale */
    --navy-deep:   #07162b;   /* sezioni scure */
    --navy-soft:   #1d3557;
    --cobalt:      #2b59ff;   /* accento */
    --cobalt-dim:  #1f3fbf;
    --paper:       #f7f5f0;   /* off-white caldo, sfondo */
    --paper-pure:  #ffffff;
    --ink:         #0b1f3a;
    --ink-soft:    #41506a;
    --line:        #e3ddd1;   /* bordi tenui */
    --line-dark:   rgba(255,255,255,.14);

    /* Tipografia */
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Misure */
    --maxw: 1180px;
    --radius: 14px;
    --radius-lg: 22px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ----------------- Reset ----------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    font-size: 1.0625rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 28px;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----------------- Tipografia ----------------- */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { color: var(--ink-soft); }

.eyebrow {
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cobalt);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--cobalt);
    display: inline-block;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

em, .italic { font-style: italic; }

/* ----------------- Bottoni ----------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .98rem;
    padding: 15px 28px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
    will-change: transform;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(11,31,58,.6);
}
.btn--primary:hover { background: var(--cobalt); transform: translateY(-2px); }

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn--light {
    background: #fff; color: var(--navy);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }

/* ----------------- Header ----------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,245,240,.78);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.site-header.scrolled {
    border-color: var(--line);
    background: rgba(247,245,240,.92);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
}
.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}
.brand--footer .brand-logo { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    font-weight: 500;
    font-size: .98rem;
    padding: 9px 16px;
    border-radius: 100px;
    color: var(--ink-soft);
    transition: color .25s, background .25s;
    position: relative;
}
.nav-link:hover { color: var(--navy); }
.nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
    height: 2px; background: var(--cobalt); border-radius: 2px;
}
.nav-cta {
    margin-left: 12px;
    font-weight: 600;
    font-size: .95rem;
    padding: 11px 24px;
    border-radius: 100px;
    background: var(--navy);
    color: #fff;
    transition: background .25s, transform .35s var(--ease);
}
.nav-cta:hover { background: var(--cobalt); transform: translateY(-2px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px; height: 2px; background: var(--navy); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------- Sezioni ----------------- */
section { position: relative; }
.section { padding-block: clamp(70px, 9vw, 130px); }
.section-head { max-width: 64ch; margin-bottom: 56px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 20px; }

.section--dark {
    background: var(--navy-deep);
    color: #fff;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.72); }
.section--dark .eyebrow { color: #8fb0ff; }
.section--dark .eyebrow::before { background: #8fb0ff; }

/* ----------------- Hero ----------------- */
.hero {
    position: relative;
    padding-top: clamp(70px, 9vw, 120px);
    padding-bottom: clamp(70px, 9vw, 120px);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}
.hero h1 { margin-top: 26px; }
.hero h1 .accent { color: var(--cobalt); font-style: italic; }
.hero .lead { margin-top: 26px; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* decorazione: griglia/atmosfera */
.hero-aside {
    position: relative;
    aspect-ratio: 4 / 5;
    background: transparent;
}
.hero-orb {
    position: absolute; width: 260px; height: 260px; border-radius: 50%;
    left: 50%; top: 32%; transform: translateX(-50%);
    background: radial-gradient(circle at 40% 35%, var(--cobalt), transparent 70%);
    filter: blur(22px); opacity: .16; z-index: 1;
}
.hero-photo {
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    height: 104%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
}

/* ----------------- Stat / numeri ----------------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stat {
    padding: 46px 36px;
    border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: 0; }
.stat-num {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    color: #fff;
    line-height: 1;
    display: flex; align-items: baseline; gap: 4px;
}
.stat-num .unit { font-size: 1.4rem; color: #8fb0ff; }
.stat-label { margin-top: 14px; color: rgba(255,255,255,.65); font-size: .98rem; }

/* ----------------- Servizi (cards) ----------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service-card {
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 34px 34px;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.service-card::after {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
    background: var(--cobalt); transition: width .45s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -34px rgba(11,31,58,.45);
    border-color: transparent;
}
.service-card:hover::after { width: 100%; }
.service-num {
    font-family: var(--serif);
    font-size: .95rem;
    color: var(--cobalt);
    letter-spacing: .1em;
}
.service-icon {
    width: 52px; height: 52px; border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(160deg, #eef1fb, #e5e9f7);
    color: var(--cobalt);
    margin-top: 22px; margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: .98rem; flex: 1; }
.service-link {
    margin-top: 22px; font-weight: 600; font-size: .92rem; color: var(--navy);
    display: inline-flex; align-items: center; gap: 8px;
}
.service-link svg { transition: transform .3s var(--ease); }
.service-card:hover .service-link { color: var(--cobalt); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* Card cliccabile (button reset) */
.service-card--clickable {
    font: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
    color: inherit;
    -webkit-appearance: none; appearance: none;
}
.service-card--clickable:focus-visible {
    outline: 2px solid var(--cobalt);
    outline-offset: 3px;
}
.service-more {
    margin-top: 22px; font-weight: 600; font-size: .92rem; color: var(--navy);
    display: inline-flex; align-items: center; gap: 8px;
}
.service-more svg { transition: transform .3s var(--ease); }
.service-card--clickable:hover .service-more { color: var(--cobalt); }
.service-card--clickable:hover .service-more svg { transform: translateX(4px); }

/* ----------------- Pop-up approfondimento servizio ----------------- */
.service-modal {
    position: fixed; inset: 0; z-index: 300;
    display: grid; place-items: center;
    padding: 24px;
}
.service-modal[hidden] { display: none; }
.service-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(7,22,43,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .35s var(--ease);
}
.service-modal__dialog {
    position: relative;
    background: var(--paper-pure);
    border-radius: var(--radius-lg);
    width: min(720px, 100%);
    max-height: min(86vh, 760px);
    display: flex; flex-direction: column;
    box-shadow: 0 50px 100px -40px rgba(7,22,43,.7);
    opacity: 0; transform: translateY(24px) scale(.97);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.service-modal.is-open .service-modal__backdrop { opacity: 1; }
.service-modal.is-open .service-modal__dialog { opacity: 1; transform: none; }
.service-modal__dialog:focus { outline: none; }
.service-modal__close {
    position: absolute; top: 18px; right: 18px;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper); color: var(--navy);
    border: 1px solid var(--line); cursor: pointer;
    transition: background .25s, color .25s, transform .25s var(--ease);
    z-index: 2;
}
.service-modal__close:hover { background: var(--navy); color: #fff; transform: rotate(90deg); }
.service-modal__head {
    padding: 44px 48px 0;
    flex-shrink: 0;
}
.service-modal__head h2 { margin-top: 16px; }
.service-modal__body {
    padding: 24px 48px 8px;
    overflow-y: auto;
    flex: 1;
}
.service-modal__body p { margin-bottom: 16px; line-height: 1.7; }
.service-modal__body h4 {
    font-family: var(--serif); font-size: 1.15rem; color: var(--navy);
    margin: 26px 0 10px;
}
.service-modal__body ul { margin: 0 0 16px; padding-left: 22px; }
.service-modal__body li { color: var(--ink-soft); margin-bottom: 8px; line-height: 1.6; }
.service-modal__body strong { color: var(--navy); }
.service-modal__foot {
    padding: 20px 48px 40px;
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    margin-top: 8px;
}
body.modal-open { overflow: hidden; }
@media (max-width: 600px) {
    .service-modal { padding: 0; }
    .service-modal__dialog { max-height: 100vh; height: 100%; border-radius: 0; width: 100%; }
    .service-modal__head { padding: 64px 24px 0; }
    .service-modal__body { padding: 20px 24px 8px; }
    .service-modal__foot { padding: 18px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .service-modal__backdrop, .service-modal__dialog { transition: none; }
}

/* ----------------- Valori ----------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.value-item {
    padding: 36px 8px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: start;
}
.value-item:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); padding-left: 0; }
.value-item:nth-child(even) { padding-left: 40px; }
.value-index { font-family: var(--serif); font-size: 1.6rem; color: var(--cobalt); }
.value-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value-item p { font-size: .98rem; }

/* ----------------- CTA banner ----------------- */
.cta-banner {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: clamp(48px, 6vw, 80px);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-banner::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(80% 120% at 50% -20%, rgba(43,89,255,.45), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 52ch; margin-inline: auto; margin-bottom: 34px; }

/* ----------------- Pagina interna: page hero ----------------- */
.page-hero {
    padding-top: clamp(64px, 8vw, 104px);
    padding-bottom: clamp(40px, 5vw, 64px);
}
.page-hero h1 { margin-top: 22px; max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }

/* ----------------- Chi siamo: layout testo ----------------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.2em; }
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split-figure {
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    background: radial-gradient(130% 130% at 20% 10%, #16335c, var(--navy) 50%, var(--navy-deep));
    position: relative; overflow: hidden;
    box-shadow: 0 40px 80px -44px rgba(11,31,58,.6);
}
.split-figure::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(100% 100% at 30% 20%, #000, transparent 75%);
}
.split-figure .figure-quote {
    position: absolute; inset: auto 38px 38px 38px;
    font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: #fff;
}
.split-photo {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.55);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------- Blog ----------------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.post-card {
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(11,31,58,.4); }
.post-thumb {
    aspect-ratio: 16/10; overflow: hidden; background: var(--navy);
    position: relative;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb--empty {
    background: radial-gradient(120% 120% at 70% 20%, #16335c, var(--navy-deep));
    display: grid; place-items: center;
}
.post-thumb--empty span { font-family: var(--serif); color: rgba(255,255,255,.3); font-size: 3rem; }
.post-body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .82rem; color: var(--cobalt); font-weight: 600; letter-spacing: .04em; }
.post-card h3 { font-size: 1.35rem; margin-top: 12px; margin-bottom: 12px; }
.post-card p { font-size: .96rem; flex: 1; }
.post-card .service-link { margin-top: 20px; }

.posts-empty {
    text-align: center; padding: 80px 20px;
    border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.posts-empty h3 { margin-bottom: 10px; }

/* Articolo singolo */
.article {
    max-width: 760px; margin-inline: auto;
}
.article-header { text-align: left; margin-bottom: 44px; }
.article-header h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.article-meta { margin-top: 22px; color: var(--ink-soft); font-size: .95rem; }
.article-cover {
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 48px;
    box-shadow: 0 30px 60px -34px rgba(11,31,58,.4);
}
.article-content { font-size: 1.12rem; line-height: 1.8; color: #283449; }
.article-content > * + * { margin-top: 1.3em; }
.article-content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.article-content h3 { font-size: 1.4rem; margin-top: 1.4em; }
.article-content a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin-block: 1.6em; display: block; }
.article-content blockquote {
    border-left: 3px solid var(--cobalt); padding-left: 24px;
    font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--navy);
}
.article-content ul, .article-content ol { padding-left: 1.3em; }
.article-content li + li { margin-top: .5em; }

/* ----------------- Categorie blog ----------------- */
.cat-filter {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 38px;
}
.cat-chip {
    display: inline-flex; align-items: center;
    padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper-pure);
    color: var(--ink-soft);
    font-size: .9rem; font-weight: 600;
    transition: all .25s var(--ease);
}
.cat-chip:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.cat-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-cat { color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }

/* ----------------- Form ----------------- */
.form-card {
    background: var(--paper-pure);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 4vw, 52px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field textarea, .field select {
    font-family: var(--sans); font-size: 1rem;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--cobalt);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(43,89,255,.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.form-consent input { margin-top: 4px; }

.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 26px; font-size: .96rem; }
.alert--ok { background: #e8f5ee; color: #14633a; border: 1px solid #bfe3cd; }
.alert--err { background: #fdecec; color: #98231f; border: 1px solid #f3cfcd; }

/* Info contatti laterale */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info-list { margin-top: 30px; display: flex; flex-direction: column; gap: 26px; }
.contact-info-item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.contact-info-item .ci-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: #eef1fb; color: var(--cobalt);
}
.contact-info-item h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-info-item a, .contact-info-item p { color: var(--navy); font-weight: 500; }

/* ----------------- Footer ----------------- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,.7);
    padding-top: 72px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line-dark);
}
.footer-tagline { margin-top: 18px; max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: rgba(255,255,255,.8); }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.65); margin-bottom: 10px; transition: color .2s; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-block: 26px; flex-wrap: wrap; gap: 12px;
    font-size: .88rem; color: rgba(255,255,255,.5);
}
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links span { margin-inline: 8px; }

/* ----------------- Animazioni di ingresso ----------------- */
.reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ----------------- Responsive ----------------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-aside { display: none; }
    .services-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .split-figure { display: none; }
    .stats-bar { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .stat:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .main-nav {
        position: fixed; inset: 78px 0 auto 0;
        flex-direction: column; align-items: stretch;
        background: var(--paper); padding: 20px 28px 30px;
        border-bottom: 1px solid var(--line);
        gap: 4px;
        transform: translateY(-120%);
        transition: transform .4s var(--ease);
        box-shadow: 0 30px 50px -30px rgba(0,0,0,.3);
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: 14px 8px; font-size: 1.1rem; }
    .nav-link.is-active::after { display: none; }
    .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
    .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
    .container { padding-inline: 20px; }
    .services-grid, .posts-grid, .form-grid, .values-grid, .footer-grid { grid-template-columns: 1fr; }
    .value-item:nth-child(odd) { border-right: 0; padding-right: 0; }
    .value-item:nth-child(even) { padding-left: 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ----------------- Admin (stile minimale dedicato) ----------------- */
.admin-body { background: var(--paper); min-height: 100vh; }
.admin-wrap { max-width: 920px; margin-inline: auto; padding: 40px 28px 80px; }
.admin-login { max-width: 400px; margin: 12vh auto; padding: 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -40px rgba(11,31,58,.4); }
.admin-login h1 { font-size: 1.8rem; margin-bottom: 8px; }
.admin-login p { margin-bottom: 28px; font-size: .95rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-topbar h1 { font-size: 1.7rem; }
.admin-actions { display: flex; gap: 12px; align-items: center; }
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.admin-row .ar-title { font-weight: 600; color: var(--navy); }
.admin-row .ar-meta { font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.admin-row .ar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.badge { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; letter-spacing: .04em; text-transform: uppercase; }
.badge--pub { background: #e8f5ee; color: #14633a; }
.badge--draft { background: #fbf0e0; color: #8a5a12; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--danger { background: #fdecec; color: #98231f; border: 1px solid #f3cfcd; }
.btn--danger:hover { background: #f8d7d5; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.editor-toolbar button { font-family: var(--sans); font-weight: 600; font-size: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: background .2s, color .2s; }
.editor-toolbar button:hover { background: var(--navy); color: #fff; }
.editor-area { min-height: 360px; padding: 22px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fff; font-size: 1.05rem; line-height: 1.7; }
.editor-area:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43,89,255,.1); }
.editor-area h2, .editor-area h3 { color: var(--navy); }
.editor-area:empty::before { content: attr(data-placeholder); color: #9aa3b2; }
.editor-area img { max-width: 100%; height: auto; border-radius: 8px; margin-block: 1em; }
.field-hint { margin-top: 8px; font-size: .82rem; color: var(--ink-soft); }
.editor-toolbar button:disabled { opacity: .5; cursor: default; }
