:root {
    --pqc-night: #071427;
    --pqc-navy: #0b1d36;
    --pqc-ink: #10223c;
    --pqc-muted: #4c607b;
    --pqc-blue: #1553b3;
    --pqc-sky: #72cbff;
    --pqc-rule: #dbe5f1;
    --pqc-ice: #f0f5fb;
    --pqc-mono: "Cascadia Code", ui-monospace, Consolas, monospace;
}

.pqc-main, .pqc-header, .pqc-footer, .pqc-inner {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.wp-site-blocks > .pqc-main,
.wp-site-blocks > footer,
.pqc-main > *,
.pqc-shell > * {
    margin-block-start: 0;
}

.pqc-main *, .pqc-header *, .pqc-footer * { box-sizing: border-box; }
.pqc-main [hidden] { display: none !important; }
.pqc-shell { width: min(calc(100% - 6rem), 1248px); margin-inline: auto; }
.pqc-inner { min-height: 56vh; padding: 5rem 1.5rem; }
:is(.pqc-main, .pqc-header, .pqc-footer) :focus-visible { outline: 3px solid #368ef7; outline-offset: 4px; }
.pqc-main :is(section, #metodologia, #fonti) { scroll-margin-top: 1.5rem; }

.pqc-header {
    color: #f4f8ff;
    background: #08162a;
    border-bottom: 1px solid #213552;
}

.pqc-header-inner, .pqc-footer-inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 3.25rem);
}
.pqc-header-inner { min-height: 5rem; }
.pqc-brand { flex-shrink: 0; margin: 0; }
.pqc-brand a {
    display: grid;
    grid-template-columns: 2.75rem auto;
    column-gap: .7rem;
    align-items: end;
    color: #f4f8ff;
    text-decoration: none;
    line-height: 1.14;
}
.pqc-brand a::before {
    content: "";
    grid-row: 1 / 3;
    width: 2.65rem;
    height: 2.65rem;
    align-self: center;
    border: 1px solid #2f5f87;
    border-radius: .6rem;
    background: #112a45 url("./marchio.webp") center / cover;
}
.pqc-brand strong { font-size: 1.02rem; letter-spacing: -.02em; }
.pqc-brand strong span { color: #75ceff; }
.pqc-brand small { color: #b3cbe7; font: 700 .75rem/1.5 var(--pqc-mono); letter-spacing: .10em; }
.pqc-nav { margin-inline-start: auto; font-size: .92rem; color: #dce8f7; }
.pqc-nav > ul { column-gap: clamp(.7rem, 2.1vw, 2.2rem); }
.pqc-nav a { color: inherit; }
.pqc-nav a:hover, .pqc-footer-links a:hover { color: #88d8ff; }
.pqc-header-cta { margin: 0; }
.pqc-header-cta a {
    display: block;
    border: 1px solid #436789;
    border-radius: .45rem;
    padding: .62rem .98rem;
    color: #f1f7ff;
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.pqc-header-cta a:hover { background: #173356; }

.pqc-hero {
    isolation: isolate;
    overflow: hidden;
    color: #f6f9ff;
    background:
        radial-gradient(ellipse at 78% 42%, #133c62 0, #0a2138 35%, transparent 67%),
        linear-gradient(115deg, #071326 15%, #07172b 78%, #0a1e36 100%);
}
.pqc-hero-grid {
    display: grid;
    position: relative;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    min-height: 34rem;
    padding-block: 5rem 4.5rem;
}
.pqc-hero-copy { position: relative; z-index: 1; }
.pqc-kicker {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    color: #1553a6;
    font: 700 .82rem/1.4 var(--pqc-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pqc-kicker::before { content: ""; width: 1.65rem; height: 2px; background: currentColor; }
.pqc-hero .pqc-kicker, .pqc-roadmap .pqc-kicker { color: #88d8ff; }
.pqc-title {
    max-width: 44rem;
    margin: 1.25rem 0 0;
    color: inherit;
    font-size: clamp(3.1rem, 5.05vw, 5.05rem);
    font-weight: 760;
    letter-spacing: -.068em;
    line-height: 1.015;
    text-wrap: balance;
}
.pqc-title span { color: #7bd0ff; }
.pqc-hero-description {
    max-width: 36rem;
    margin: 1.6rem 0 0;
    color: #c9daed;
    font-size: clamp(1.07rem, 1.45vw, 1.25rem);
    line-height: 1.58;
}
.pqc-hero-actions { gap: .68rem; margin: 1.9rem 0 0; }
.pqc-hero-actions .wp-block-button__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.12rem;
    padding: .72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: .48rem;
    font-family: inherit;
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
}
.pqc-primary .wp-block-button__link { color: #07172c; background: #79ceff; }
.pqc-primary .wp-block-button__link:hover { background: #b4e7ff; }
.pqc-outlined .wp-block-button__link { color: #eff7ff; background: #0a1c34; border-color: #456384; }
.pqc-outlined .wp-block-button__link:hover { background: #193b5c; }
.pqc-hero-image {
    position: absolute;
    inset: -1.25rem -2.4rem -1rem auto;
    width: min(58%, 41rem);
    margin: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 65% 62% at 55% 46%, #000 37%, #000e 56%, transparent 91%);
}
.pqc-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 49%; }
.pqc-protocols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.05fr;
    border-top: 1px solid #2b4564;
    color: #e9f4ff;
}
.pqc-protocols > p {
    margin: 0;
    padding: 1rem 1.25rem 1.15rem;
    border-right: 1px solid #2b4564;
}
.pqc-protocols > p:first-child { padding-inline-start: 0; }
.pqc-protocols > p strong { display: block; font-size: 1.04rem; letter-spacing: -.02em; }
.pqc-protocols small { display: block; color: #bbcee5; font-size: .85rem; }
.pqc-protocols .pqc-credits {
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    min-width: 0;
    padding: .6rem 0 .6rem .8rem;
    color: #bdd1e8;
}
.pqc-credit-label { margin: 0; font-size: .82rem; white-space: nowrap; }
.pqc-credit-logo { width: min(9.65rem, 100%); margin: 0; }
.pqc-credit-logo a {
    display: block;
    padding: .39rem .56rem;
    border: 1px solid #cfdeef;
    border-radius: .42rem;
    background: #f6faff;
}
.pqc-credit-logo a:hover { background: #e1f2ff; }
.pqc-credit-logo img { display: block; width: 100%; height: auto; aspect-ratio: var(--pqc-logo-ratio, 4 / 1); object-fit: contain; }

.pqc-section { padding: clamp(3.7rem, 7vw, 6.5rem) 0; }
.pqc-data-section { background: #f2f6fb; }
.pqc-section-intro { max-width: 51rem; margin: 0 0 2rem; }
.pqc-section-intro h2 {
    margin: .65rem 0 .65rem;
    color: inherit;
    font-size: clamp(2.15rem, 3.55vw, 3.65rem);
    letter-spacing: -.057em;
    line-height: 1.06;
    text-wrap: balance;
}
.pqc-section-intro > p:last-child {
    max-width: 42rem;
    margin: 0;
    color: var(--pqc-muted, #4c607b);
    font-size: 1.08rem;
}
.pqc-dashboard {
    overflow: hidden;
    color: var(--pqc-ink, #10223c);
    background: #fff;
    border: 1px solid #cfdeef;
    border-radius: .8rem;
    box-shadow: 0 12px 34px #1d4a8010;
}
.pqc-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem clamp(1rem, 3vw, 2rem);
    background: linear-gradient(110deg, #0d2544, #102f54);
    color: #f2f8ff;
}
.pqc-dashboard-caption {
    margin: 0 0 .22rem;
    color: #a7dfff;
    font: 650 .75rem/1.35 var(--pqc-mono);
    letter-spacing: .075em;
}
.pqc-dashboard-head h3 { margin: 0; color: inherit; font-size: clamp(1.2rem, 2.3vw, 1.6rem); letter-spacing: -.03em; }
.pqc-report-tag {
    flex-shrink: 0;
    margin: 0;
    padding: .36rem .64rem;
    border: 1px solid #5983aa;
    border-radius: .32rem;
    color: #d5ecff;
    font-size: .81rem;
    font-weight: 650;
}
.pqc-report-tag--demo { background: #fff3ce; border-color: #fff3ce; color: #5e4200; }
.pqc-dashboard-body { padding: clamp(1rem, 3vw, 2rem); }
.pqc-empty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px dashed #c9d7e8;
    border-radius: .52rem;
    padding: 1rem 1.2rem;
    background: #f8fbfe;
}
.pqc-empty p { margin: 0; }
.pqc-empty p + p { color: #4c607b; }
.pqc-main button, .pqc-main input, .pqc-main select { font: inherit; }
.pqc-main button { cursor: pointer; }
.pqc-main button:disabled { cursor: default; opacity: .6; }
.pqc-demo-toggle {
    flex-shrink: 0;
    padding: .6rem .9rem;
    border: 1px solid #285fb7;
    border-radius: .45rem;
    background: #1553b3;
    color: #fff;
    font-weight: 700 !important;
    text-decoration: none;
}
.pqc-demo-toggle:hover { background: #113e87; }
.pqc-search-row { display: flex; align-items: end; gap: .75rem; padding-bottom: 1rem; }
.pqc-field { display: flex; flex: 1; flex-direction: column; gap: .3rem; font-size: .92rem; font-weight: 650; }
.pqc-sector-field { flex: 0 1 15rem; }
.pqc-field :is(input, select) {
    width: 100%;
    min-height: 2.8rem;
    padding: .43rem .7rem;
    border: 1px solid #aabdd4;
    border-radius: .35rem;
    color: #10223c;
    background-color: #fff;
}
.pqc-field select {
    appearance: none;
    padding-right: 2rem;
    background:
        linear-gradient(45deg, transparent 50%, #355575 50%) calc(100% - 17px) 50% / 5px 5px no-repeat,
        linear-gradient(135deg, #355575 50%, transparent 50%) calc(100% - 12px) 50% / 5px 5px no-repeat #fff;
}
.pqc-reset { padding: .4rem .7rem; color: #1553a6; background: #eff5fb; border: 1px solid #c9d7e5; border-radius: .35rem; }
.pqc-reset:hover:not(:disabled), .pqc-downloads button:hover { background: #e0ecfb; }
.pqc-results-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.pqc-results-heading p { margin: 0; color: #435b77; font-size: .9rem; }
.pqc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: 1rem; }
.pqc-kpis p { margin: 0; padding: .55rem .75rem; background: #f1f6fc; border-radius: .33rem; }
.pqc-kpis strong, .pqc-kpis span { display: block; }
.pqc-kpis strong { font-size: 1.4rem; line-height: 1.3; }
.pqc-kpis span { color: #445975; font-size: .85rem; }
.pqc-results-note { margin: -.28rem 0 .8rem; color: #445975; font-size: .89rem; }
.pqc-table-scroll { overflow: auto; border: 1px solid #dce6f0; border-radius: .35rem; }
.pqc-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
.pqc-table :is(th, td) { padding: .65rem .75rem; vertical-align: top; }
.pqc-table thead { background: #eaf2fa; color: #163353; }
.pqc-table tbody tr + tr { border-top: 1px solid #e1e9f2; }
.pqc-domain { white-space: nowrap; }
.pqc-table td:nth-child(4) { min-width: 5.5rem; }
.pqc-chip { display: inline-block; white-space: nowrap; border-radius: .28rem; padding: .16rem .48rem; font-size: .83rem; font-weight: 650; background: #edf1f6; color: #30465f; }
.pqc-chip--ml-kem { background: #dcf6eb; color: #105d48; }
.pqc-chip--kyber, .pqc-chip--no-tls13, .pqc-chip--inconcludente { background: #fff0ca; color: #654400; }
.pqc-chip--non-raggiungibile { background: #f8e9e9; color: #802b2b; }
.pqc-record-details summary { cursor: pointer; color: #1553a6; }
.pqc-record-details dl { margin: .4rem 0 0; }
.pqc-record-details dt { font-weight: 700; font-size: .82rem; }
.pqc-record-details dd { margin: 0 0 .38rem; overflow-wrap: anywhere; }
.pqc-downloads, .pqc-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; }
.pqc-downloads span { color: #435b77; margin-right: .4rem; font-size: .89rem; }
.pqc-downloads button {
    padding: .26rem .62rem;
    border: 1px solid #b7cae0;
    border-radius: .3rem;
    color: #1553a6;
    background: #fff;
    font: 700 .83rem/1.7 var(--pqc-mono);
}
.pqc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.pqc-method { margin: 1.2rem 0 0; padding: .9rem 1rem; border: 1px solid #ccdaeb; border-radius: .48rem; }
.pqc-method summary { color: #174a8c; cursor: pointer; font-weight: 700; }
.pqc-method p { max-width: 58rem; margin: .7rem 0 .15rem; color: #435b77; }

.pqc-editorial { background: #fff; }
.pqc-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pqc-story {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: clamp(1rem, 2vw, 1.75rem);
    border: 1px solid #dbe5f1;
    border-top: 3px solid #397cce;
    border-radius: .72rem;
    background: linear-gradient(160deg, #f5f9ff, #fff 47%);
}
.pqc-story h3, .pqc-stage h3 { margin: .5rem 0 .65rem; color: inherit; font-size: clamp(1.3rem, 2vw, 1.66rem); letter-spacing: -.04em; }
.pqc-story-type, .pqc-stage-type { margin: 0; color: #1553a6; font: 700 .76rem/1.5 var(--pqc-mono); letter-spacing: .075em; }
.pqc-story-lead { margin: 0 0 1.2rem; color: #4c607b; }
.pqc-story-details { margin: auto 0 0; }
.pqc-story-details summary { cursor: pointer; color: #154e9d; font-weight: 700; }
.pqc-story-details p { margin: .65rem 0 0; color: #435b77; }
.pqc-story-details a { overflow-wrap: anywhere; }
.pqc-guide-grid .pqc-story { border-top-color: #438da2; background: linear-gradient(160deg, #f3f9fa, #fff 53%); }
.pqc-guide-grid .pqc-story-type { color: #126174; }
.pqc-guides { margin: clamp(3rem, 6vw, 5rem) 0 0; }

.pqc-roadmap { background: #0b1c31; color: #f5f9ff; }
.pqc-roadmap .pqc-section-intro > p:last-child { color: #c3d4e8; }
.pqc-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.pqc-stage { margin: 0; padding: 1.4rem; border: 1px solid #2b4562; border-radius: .65rem; background: #102541; }
.pqc-stage-type { color: #9edcff; text-transform: uppercase; }
.pqc-stage > p:last-child { margin: 0; color: #cbdbef; }
.pqc-contact {
    margin: 2rem 0 0;
    padding: clamp(1.3rem, 4vw, 2.45rem);
    border: 1px solid #345d85;
    border-radius: .65rem;
    background: linear-gradient(135deg, #153864, #102747);
}
.pqc-contact-copy h2 { margin: 0 0 .45rem; color: #fff; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.pqc-contact-copy p { max-width: 46rem; margin: 0; color: #d7e8f9; }
.pqc-contact-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}
.pqc-contact-link {
    display: block;
    padding: .7rem .85rem;
    border: 1px solid #496e95;
    border-radius: .45rem;
    background: #0d2544;
    color: #eaf6ff;
    text-decoration: none;
}
.pqc-contact-link:hover { background: #1b426f; }
.pqc-contact-role { display: block; color: #a8ddff; font-size: .83rem; font-weight: 650; }
.pqc-contact-email { font-weight: 650; overflow-wrap: anywhere; }
.pqc-footer { padding: 1.5rem 0; border-top: 1px solid #2b4562; background: #08162a; color: #d4e4f6; }
.pqc-footer-inner { justify-content: space-between; }
.pqc-footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.pqc-footer-links a { color: inherit; text-decoration: none; font-size: .89rem; }
.pqc-editor-placeholder { padding: 1rem; border: 1px dashed #38659d; border-radius: .4rem; background: #eff6ff; color: #173859; }
.pqc-editor-placeholder p { margin: .2rem 0 0; }

@media (max-width: 980px) {
    .pqc-shell { width: min(calc(100% - 3rem), 1248px); }
    .pqc-header-inner { gap: 1rem; }
    .pqc-hero-grid { min-height: 31rem; }
    .pqc-hero-image { width: 60%; }
    .pqc-protocols .pqc-credits { flex-direction: column; align-items: flex-end; gap: .3rem; }
}
@media (max-width: 770px) {
    .pqc-header-inner { flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; padding-block: .7rem; }
    .pqc-nav { order: 3; width: 100%; margin: 0; padding: .28rem 0 .05rem; }
    .pqc-nav > ul { justify-content: flex-start; column-gap: 1rem; }
    .pqc-hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 3.15rem 0 0; }
    .pqc-title { text-wrap: wrap; }
    .pqc-hero-image { position: relative; inset: auto; width: min(100%, 31rem); margin: -1rem auto -1rem; aspect-ratio: 1.36; }
    .pqc-hero-image img { object-position: 55% 46%; }
    .pqc-story-grid, .pqc-stages { grid-template-columns: 1fr; }
    .pqc-story, .pqc-stage { padding: 1.2rem; }
    .pqc-contact-list { grid-template-columns: 1fr; }
    .pqc-footer-inner { flex-wrap: wrap; }
}
@media (max-width: 500px) {
    .pqc-shell { width: calc(100% - 2rem); }
    .pqc-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
    .pqc-hero-description { margin-top: 1.15rem; }
    .pqc-hero-actions { margin-top: 1.3rem; }
    .pqc-protocols { grid-template-columns: 1fr 1fr; }
    .pqc-protocols > p { padding: .67rem .55rem; }
    .pqc-protocols > p:nth-child(2) { border-right: 0; }
    .pqc-protocols > :nth-child(n+3) { border-top: 1px solid #2b4564; }
    .pqc-protocols > p:nth-child(3) { padding-inline-start: 0; }
    .pqc-protocols .pqc-credits { align-self: stretch; justify-content: center; }
    .pqc-empty, .pqc-dashboard-head { align-items: flex-start; flex-direction: column; }
    .pqc-search-row { flex-wrap: wrap; }
    .pqc-field, .pqc-sector-field { flex: 1 1 100%; }
    .pqc-kpis span { font-size: .81rem; }
}
