/* Quaderno di Casa | Minimalismo istituzionale | Nexa Suite S.r.l.s. */
:root {
    color-scheme: light;
    --qdc-white: #ffffff;
    --qdc-navy: #0b1f3b;
    --qdc-black: #000000;
    --qdc-muted: #525252;
    --qdc-line: #e5e7eb;
    --qdc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --qdc-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: auto; background: var(--qdc-white); }
body.qdc-construction {
    margin: 0;
    background: var(--qdc-white);
    color: var(--qdc-black);
    font-family: var(--qdc-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
.qdc-construction *, .qdc-construction *::before, .qdc-construction *::after {
    animation: none !important;
    transition: none !important;
}
.qdc-construction ::selection { color: var(--qdc-white); background: var(--qdc-navy); }
.qdc-construction :focus-visible { outline: 3px solid var(--qdc-navy); outline-offset: 5px; }
.qdc-construction img { max-width: 100%; display: block; height: auto; }
.qdc-construction a { color: inherit; }
.qdc-construction svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.qdc-shell { width: min(1216px, calc(100% - 112px)); min-height: 100vh; min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.qdc-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--qdc-line); }
.qdc-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.qdc-brand-icon { width: 60px; height: 60px; flex: 0 0 60px; }
.qdc-brand-type { display: flex; flex-direction: column; gap: 5px; }
.qdc-brand-name { font-family: var(--qdc-serif); font-size: 24px; font-weight: 600; letter-spacing: -0.6px; color: var(--qdc-navy); line-height: 1.12; }
.qdc-brand-description { font-size: 10px; font-weight: 500; letter-spacing: 1.65px; text-transform: uppercase; color: var(--qdc-muted); }
.qdc-company { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11px; color: var(--qdc-muted); }
.qdc-company > span { font-size: 10px; }
.qdc-company strong { color: var(--qdc-navy); text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; }
.qdc-main { flex: 1; padding-block: 66px 46px; }
.qdc-main:focus, .qdc-project:focus { outline: none; }
.qdc-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); align-items: center; gap: 64px; padding-bottom: 64px; }
.qdc-hero-copy { min-width: 0; }
.qdc-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 27px; padding: 7px 12px; color: var(--qdc-navy); border: 1px solid var(--qdc-navy); border-radius: 3px; font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.qdc-hero h1 { margin: 0; color: var(--qdc-navy); font-family: var(--qdc-serif); font-size: clamp(42px, 4.5vw, 64px); font-weight: 500; line-height: 1.12; letter-spacing: -2px; }
.qdc-lead { margin: 26px 0 0; max-width: 510px; color: var(--qdc-muted); font-size: 17px; line-height: 1.8; }
.qdc-lead strong { color: var(--qdc-navy); font-weight: 600; }
.qdc-availability { max-width: 440px; margin: 18px 0 26px; color: var(--qdc-muted); font-size: 13px; line-height: 1.8; }
.qdc-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; padding: 12px 20px; border: 1px solid var(--qdc-navy); border-radius: 4px; background: var(--qdc-navy); color: var(--qdc-white) !important; font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: none; }
.qdc-button:hover { background: var(--qdc-black); border-color: var(--qdc-black); }
.qdc-button:active { outline: 2px solid var(--qdc-navy); outline-offset: 2px; }
.qdc-hero-mark { margin: 0; display: flex; align-items: center; flex-direction: column; }
.qdc-hero-mark img { width: 370px; }
.qdc-hero-mark figcaption { margin-top: 16px; color: var(--qdc-muted); text-align: center; font-size: 9px; text-transform: uppercase; font-weight: 500; letter-spacing: 2.1px; }
.qdc-project { padding-top: 27px; border-top: 1px solid var(--qdc-line); scroll-margin-top: 24px; }
.qdc-project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.qdc-project-heading h2 { margin: 0; color: var(--qdc-navy); font-size: 14px; font-weight: 600; line-height: 1.6; }
.qdc-section-label { color: var(--qdc-muted); font-size: 9px; text-transform: uppercase; font-weight: 500; letter-spacing: 1.2px; white-space: nowrap; }
.qdc-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.qdc-feature { padding-right: 18px; }
.qdc-feature-number { color: var(--qdc-muted); font-size: 9px; font-weight: 500; letter-spacing: 1.2px; font-variant-numeric: tabular-nums; }
.qdc-feature h3 { margin: 9px 0 9px; color: var(--qdc-navy); font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -0.35px; }
.qdc-feature p { max-width: 330px; margin: 0; color: var(--qdc-muted); font-size: 13px; line-height: 1.8; }
.qdc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 24px 0; border-top: 1px solid var(--qdc-line); font-size: 11px; color: var(--qdc-muted); }
.qdc-footer p { margin: 0; }
.qdc-footer strong { font-weight: 500; }
.qdc-tax-id { font-variant-numeric: tabular-nums; }
.qdc-skip { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 12px 16px; background: var(--qdc-navy); color: var(--qdc-white) !important; text-decoration: none; transform: translateY(-200%); }
.qdc-skip:focus { transform: translateY(0); }

@media (min-width: 1500px) {
    .qdc-main { display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 1050px) {
    .qdc-shell { width: calc(100% - 64px); }
    .qdc-main { padding-top: 48px; }
    .qdc-hero { gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); }
    .qdc-hero h1 { font-size: 48px; letter-spacing: -1.5px; }
    .qdc-lead { font-size: 16px; }
    .qdc-hero-mark figcaption { font-size: 8px; letter-spacing: 1.4px; }
    .qdc-features { gap: 24px; }
    .qdc-feature { padding: 0; }
    .qdc-feature h3 { font-size: 16px; }
}
@media (max-width: 760px) {
    .qdc-shell { width: calc(100% - 48px); }
    .qdc-header { min-height: 94px; padding-block: 18px; }
    .qdc-brand-name { font-size: 22px; }
    .qdc-brand-icon { width: 52px; height: 52px; flex-basis: 52px; }
    .qdc-brand { gap: 9px; }
    .qdc-brand-description { font-size: 8px; letter-spacing: 1.5px; }
    .qdc-company { display: none; }
    .qdc-main { padding-block: 42px 36px; }
    .qdc-hero { display: block; padding-bottom: 40px; }
    .qdc-hero-mark { display: none; }
    .qdc-status { margin-bottom: 25px; font-size: 9px; letter-spacing: 1.2px; }
    .qdc-hero h1 { font-size: clamp(37px, 7.5vw, 52px); line-height: 1.16; letter-spacing: -1.5px; }
    .qdc-lead { max-width: 540px; margin-top: 22px; font-size: 16px; line-height: 1.8; }
    .qdc-availability { max-width: 420px; font-size: 12px; margin-block: 16px 24px; }
    .qdc-button { min-height: 50px; }
    .qdc-project { padding-top: 25px; }
    .qdc-project-heading { flex-direction: column; gap: 10px; margin-bottom: 24px; }
    .qdc-project-heading h2 { max-width: 300px; font-size: 15px; }
    .qdc-section-label { display: none; }
    .qdc-features { grid-template-columns: 1fr; gap: 23px; }
    .qdc-feature h3 { margin-block: 4px 5px; font-size: 17px; }
    .qdc-feature p { max-width: 540px; font-size: 13px; }
    .qdc-footer { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 20px 26px; font-size: 10px; }
    .qdc-footer p:nth-child(2) { display: none; }
}
@media (max-width: 360px) {
    .qdc-shell { width: calc(100% - 36px); }
    .qdc-brand-name { font-size: 20px; }
    .qdc-hero h1 { font-size: 35px; }
    .qdc-hero h1 { letter-spacing: -1.4px; }
}
@media print {
    .qdc-shell { width: 100%; }
    .qdc-skip, .qdc-button { display: none; }
    .qdc-main { padding-block: 24px; }
    .qdc-hero { padding-bottom: 24px; }
}
