/*
 * ASCOM — Figma fidelity layer for Elementor blocks
 *
 * The prototype renders server-side components from ASCOM Core. This layer
 * gives those components the same visual contract used by Elementor blocks
 * (section, container, card and button utility classes) without overriding
 * Elementor or Hello Elementor files.
 */

:where(.ascom-prototype-page, .ascom-beta, .ascom-workbench, .ascom-editorial-form-wrap) {
    --ascom-fg: var(--ascom-color-ink);
    --ascom-surface: var(--ascom-color-white);
    --ascom-surface-soft: var(--ascom-color-soft);
    --ascom-surface-sky: var(--ascom-color-sky);
    --ascom-navy: var(--ascom-color-navy);
    --ascom-blue: var(--ascom-color-blue);
    --ascom-action: var(--ascom-color-action);
    --ascom-line: var(--ascom-color-line);
    --ascom-gold: var(--ascom-color-gold);
    --ascom-content-width: var(--ascom-container-width);
    color: var(--ascom-fg);
    font-family: var(--ascom-font-body);
}

/* Elementor utility classes. They can be assigned to any Section, Container,
 * Inner Section, Heading, Icon Box or Button in the visual editor. */
.ascom-elementor-section {
    width: 100%;
    padding-block: clamp(3rem, 6vw, 6rem);
    background: var(--ascom-surface);
}

.ascom-elementor-section--soft { background: var(--ascom-surface-soft); }
.ascom-elementor-section--sky { background: var(--ascom-surface-sky); }
.ascom-elementor-section--navy { color: var(--ascom-color-white); background: var(--ascom-navy); }

.ascom-elementor-container {
    width: min(100% - (2 * var(--ascom-layout-gutter)), var(--ascom-content-width));
    margin-inline: auto;
}

.ascom-elementor-eyebrow {
    margin: 0 0 .75rem;
    color: var(--ascom-action);
    font: 800 .75rem/1.2 var(--ascom-font-display);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ascom-elementor-card {
    min-width: 0;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    border: 1px solid var(--ascom-line);
    border-radius: var(--ascom-radius-md);
    background: var(--ascom-surface);
    box-shadow: var(--ascom-shadow-card);
}

.ascom-elementor-card:hover {
    border-color: #9ebbd6;
    box-shadow: 0 22px 56px rgb(4 30 66 / 13%);
}

.ascom-elementor-button,
.elementor-widget-button .ascom-elementor-button,
:where(.ascom-prototype-page, .ascom-beta, .ascom-workbench, .ascom-editorial-form-wrap) .elementor .elementor-button {
    min-height: 44px;
    padding: .75rem 1.35rem;
    border: 2px solid var(--ascom-action);
    border-radius: var(--ascom-radius-pill);
    color: var(--ascom-color-white) !important;
    background: var(--ascom-action);
    font: 700 .95rem/1.2 var(--ascom-font-display);
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.elementor-widget-button .ascom-elementor-button:hover,
.elementor-widget-button .ascom-elementor-button:focus-visible,
:where(.ascom-prototype-page, .ascom-beta, .ascom-workbench, .ascom-editorial-form-wrap) .elementor .elementor-button:hover,
:where(.ascom-prototype-page, .ascom-beta, .ascom-workbench, .ascom-editorial-form-wrap) .elementor .elementor-button:focus-visible,
.ascom-elementor-button:hover {
    border-color: var(--ascom-navy);
    color: var(--ascom-color-white) !important;
    background: var(--ascom-navy);
    box-shadow: 0 8px 18px rgb(4 30 66 / 18%);
}

.ascom-elementor-button--outline,
.elementor-widget-button .ascom-elementor-button--outline {
    color: var(--ascom-action) !important;
    background: transparent;
}

.ascom-elementor-button--outline:hover,
.elementor-widget-button .ascom-elementor-button--outline:hover {
    color: var(--ascom-color-white) !important;
    background: var(--ascom-action);
}

/* Shared ASCOM shell: match Figma's 52/84/56px header rhythm. */
.ascom-prototype-page .ascom-utility {
    min-height: 52px;
    background: var(--ascom-navy);
}

.ascom-prototype-page .ascom-utility__inner { min-height: 52px; }

.ascom-prototype-page .ascom-header {
    border-bottom-color: var(--ascom-line);
    box-shadow: 0 2px 12px rgb(4 30 66 / 4%);
}

.ascom-prototype-page .ascom-header__inner { min-height: 84px; }

.ascom-prototype-page .ascom-brand__mark {
    width: 48px;
    border-radius: 5px;
    background: var(--ascom-action);
    box-shadow: inset -7px -7px 0 rgb(4 30 66 / 14%);
}

.ascom-prototype-page .ascom-brand__logo,
.ascom-beta__brand img,
.ascom-footer__brand img {
    display: block;
    width: auto;
    max-width: 158px;
    height: auto;
    max-height: 64px;
}

.ascom-prototype-page .ascom-brand__logo { max-height: 58px; }
.ascom-footer__brand img { filter: brightness(0) invert(1); }

.ascom-prototype-page .ascom-navigation ul { gap: clamp(.85rem, 2vw, 2rem); }
.ascom-prototype-page .ascom-navigation a { font-size: .88rem; }

.ascom-prototype-page .ascom-compass {
    border-bottom-color: #c9d9e8;
    background: var(--ascom-surface-sky);
}

.ascom-prototype-page .ascom-compass__signal {
    min-height: 56px;
    padding-block: .7rem;
}

.ascom-prototype-page .ascom-compass__signal span { color: var(--ascom-blue); }
.ascom-prototype-page .ascom-compass__signal strong { font-size: .84rem; }

/* Figma cards use a restrained border, 16px radius and a clear action link. */
.ascom-prototype-page .ascom-card,
.ascom-prototype-page .ascom-needs a,
.ascom-beta__card {
    border-top-width: 3px;
    border-radius: var(--ascom-radius-md);
    box-shadow: 0 8px 24px rgb(4 30 66 / 5%);
}

.ascom-prototype-page .ascom-card:hover,
.ascom-beta__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgb(4 30 66 / 11%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ascom-prototype-page .ascom-section-heading h2,
.ascom-beta__section-heading h2 { letter-spacing: -.028em; }

.ascom-prototype-page .ascom-search,
.ascom-beta__search-form {
    border-radius: var(--ascom-radius-md);
}

.ascom-prototype-page .ascom-search {
    border-top-width: 4px;
    box-shadow: var(--ascom-shadow-card);
}

.ascom-prototype-page .ascom-answer__summary,
.ascom-prototype-page .ascom-federation-path {
    overflow: hidden;
    border-radius: var(--ascom-radius-md);
    box-shadow: 0 8px 24px rgb(4 30 66 / 5%);
}

.ascom-prototype-page .ascom-answer__summary > div { background: var(--ascom-surface); }

.ascom-prototype-page .ascom-answer__next {
    border-radius: var(--ascom-radius-md);
    box-shadow: 0 8px 24px rgb(4 30 66 / 6%);
}

.ascom-prototype-page .ascom-cta,
.ascom-beta__cta {
    border-radius: var(--ascom-radius-lg);
    background: var(--ascom-action);
    box-shadow: 0 18px 42px rgb(4 30 66 / 16%);
}

/* Workbench: operational dashboard, not a marketing card wall. */
.ascom-workbench {
    width: min(100% - (2 * var(--ascom-layout-gutter)), var(--ascom-content-width));
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.ascom-workbench__header {
    max-width: 56rem;
    margin-bottom: 2.5rem;
}

.ascom-workbench__panel,
.ascom-workbench__notice {
    border-radius: var(--ascom-radius-md);
    box-shadow: 0 8px 24px rgb(4 30 66 / 5%);
}

.ascom-workbench__panel--cta {
    border: 0;
    color: var(--ascom-color-white);
    background: var(--ascom-navy);
}

.ascom-workbench__panel--cta h3,
.ascom-workbench__panel--cta .ascom-workbench__muted { color: var(--ascom-color-white); }

.ascom-workbench__item {
    border-radius: var(--ascom-radius-sm);
    background: var(--ascom-surface-soft);
}

/* Editorial form blocks: make the JetFormBuilder canvas feel like an
 * Elementor section while keeping all fields server-side and accessible. */
.ascom-editorial-form-wrap {
    width: min(100% - (2 * var(--ascom-layout-gutter)), 920px);
    margin-inline: auto;
}

.ascom-editorial-form-wrap .jet-form-builder {
    border-radius: var(--ascom-radius-lg);
    box-shadow: var(--ascom-shadow-card);
}

.ascom-editorial-form-wrap .jet-form-builder-row { margin-bottom: 28px; }

.ascom-editorial-form-wrap .jet-form-builder-row:has(.ascom-step-heading) {
    border-radius: var(--ascom-radius-md);
    box-shadow: 0 12px 28px rgb(4 30 66 / 12%);
}

.ascom-editorial-form-wrap .ascom-rich-editor {
    border-radius: var(--ascom-radius-sm);
    box-shadow: 0 0 0 1px rgb(0 119 252 / 8%);
}

/* Layout contract condiviso: ogni superficie principale usa lo stesso
 * gutter e lo stesso limite, così Prototype, Beta, workbench e blocchi
 * Elementor restano allineati tra viewport piccoli e ultrawide. */
.ascom-prototype-page .ascom-container,
.ascom-beta__container,
.ascom-beta__cta,
.ascom-workbench {
    width: min(100% - (2 * var(--ascom-layout-gutter)), var(--ascom-content-width));
}

.ascom-editorial-form-wrap {
    width: min(100% - (2 * var(--ascom-layout-gutter)), 920px);
}

@media (max-width: 900px) {
    .ascom-prototype-page .ascom-header__inner { min-height: 76px; }
    .ascom-elementor-container { width: min(100% - (2 * var(--ascom-layout-gutter)), var(--ascom-content-width)); }
}

@media (max-width: 680px) {
    .ascom-elementor-section { padding-block: 2.5rem; }
    .ascom-prototype-page .ascom-utility__inner { min-height: 48px; }
    .ascom-prototype-page .ascom-compass__signal { min-height: 64px; }
    .ascom-prototype-page .ascom-card,
    .ascom-beta__card { box-shadow: 0 6px 18px rgb(4 30 66 / 6%); }
    .ascom-workbench { width: min(100% - (2 * var(--ascom-layout-gutter)), var(--ascom-content-width)); }
}

@media (prefers-reduced-motion: reduce) {
    .ascom-prototype-page .ascom-card:hover,
    .ascom-beta__card:hover,
    :where(.ascom-prototype-page, .ascom-beta, .ascom-workbench, .ascom-editorial-form-wrap) .elementor .elementor-button,
    .ascom-elementor-button { transform: none; transition: none; }
}

@media (forced-colors: active) {
    .ascom-elementor-card,
    .ascom-prototype-page .ascom-card,
    .ascom-beta__card,
    .ascom-workbench__panel { border: 2px solid CanvasText; }
}

/* Header v2: a quiet utility rail, a centered navigation and a four-signal
 * compass. This is the shared shell used by the Figma reference screens. */
.ascom-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ascom-prototype-page .ascom-utility {
    min-height: clamp(52px, 3.2vw, 64px);
    background: var(--ascom-navy);
    color: var(--ascom-color-white);
}

.ascom-prototype-page .ascom-utility__inner {
    width: calc(100% - (2 * var(--ascom-shell-gutter)));
    max-width: var(--ascom-shell-max-width);
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.ascom-prototype-page .ascom-utility__primary,
.ascom-prototype-page .ascom-utility__links {
    display: flex;
    align-items: center;
    gap: clamp(.8rem, 1.8vw, 1.75rem);
}

.ascom-prototype-page .ascom-utility a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: rgb(255 255 255 / 92%);
    font-size: clamp(.75rem, .72vw, .95rem);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.ascom-prototype-page .ascom-utility a:hover,
.ascom-prototype-page .ascom-utility a:focus-visible { color: var(--ascom-color-white); }

.ascom-prototype-page .ascom-utility__account {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px !important;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: 50%;
}

.ascom-prototype-page .ascom-utility__account-icon {
    position: relative;
    width: 15px;
    height: 15px;
    display: block;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.ascom-prototype-page .ascom-utility__account-icon::before {
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
}

.ascom-prototype-page .ascom-utility__account-icon::after {
    position: absolute;
    right: 2px;
    bottom: 2px;
    left: 2px;
    height: 4px;
    border: 1px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    content: "";
}

.ascom-prototype-page .ascom-utility__search {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px !important;
    justify-content: center;
    border: 1px solid rgb(86 183 230 / 90%);
    border-radius: 50%;
}

.ascom-prototype-page .ascom-utility__search span {
    position: relative;
    width: 14px;
    height: 14px;
    display: block;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.ascom-prototype-page .ascom-utility__search span::after {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 6px;
    height: 1.5px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.ascom-prototype-page .ascom-header {
    background: var(--ascom-color-white);
    border-bottom: 1px solid var(--ascom-line);
    box-shadow: 0 2px 12px rgb(4 30 66 / 4%);
}

.ascom-prototype-page .ascom-header__inner {
    width: calc(100% - (2 * var(--ascom-shell-gutter)));
    max-width: var(--ascom-shell-max-width);
    min-height: clamp(84px, 5vw, 104px);
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    gap: 2rem;
}

.ascom-prototype-page .ascom-brand { justify-self: start; }

.ascom-prototype-page .ascom-brand__logo {
    width: auto;
    max-width: 158px;
    height: auto;
    max-height: 60px;
}

.ascom-prototype-page .ascom-navigation { justify-self: center; }

.ascom-prototype-page .ascom-navigation ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.3vw, 2.25rem);
}

.ascom-prototype-page .ascom-navigation a {
    min-height: clamp(84px, 5vw, 104px);
    padding-inline: .1rem;
    border-bottom: 3px solid transparent;
    color: var(--ascom-blue);
    font-size: clamp(.875rem, .82vw, 1.05rem);
    font-weight: 600;
    letter-spacing: -.01em;
}

.ascom-prototype-page .ascom-navigation a:hover,
.ascom-prototype-page .ascom-navigation a[aria-current="page"] {
    border-bottom-color: var(--ascom-action);
    color: var(--ascom-action);
}

.ascom-prototype-page .ascom-header__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ascom-prototype-page .ascom-header__member {
    min-height: 44px;
    padding: .65rem 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ascom-color-blue);
    border-radius: var(--ascom-radius-pill);
    color: var(--ascom-color-blue);
    font: 600 clamp(.85rem, .8vw, 1rem)/1 var(--ascom-display);
    text-decoration: none;
    white-space: nowrap;
}

.ascom-prototype-page .ascom-header__member:hover,
.ascom-prototype-page .ascom-header__member:focus-visible {
    background: var(--ascom-color-blue);
    color: var(--ascom-color-white);
}

.ascom-prototype-page .ascom-compass {
    background: var(--ascom-color-white);
    border-bottom: 1px solid var(--ascom-line);
}

.ascom-prototype-page .ascom-compass__inner {
    width: calc(100% - (2 * var(--ascom-shell-gutter)));
    max-width: var(--ascom-shell-max-width);
    display: block;
}

.ascom-prototype-page .ascom-compass__signals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ascom-prototype-page .ascom-compass__signal {
    --ascom-signal-accent: var(--ascom-blue);
    min-height: clamp(3.5rem, 3.5vw, 4.5rem);
    padding: clamp(.6rem, .75vw, .8rem) clamp(1rem, 2vw, 2.5rem);
    display: grid;
    grid-template-columns: clamp(2.25rem, 1.6vw, 2.5rem) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: .7rem;
    align-content: center;
    border-left: 1px solid var(--ascom-line);
}

.ascom-prototype-page .ascom-compass__signal:first-child { border-left: 0; }

/* La prima icona condivide il bordo sinistro del logo; le colonne successive
 * mantengono il respiro interno del riferimento Figma. */
.ascom-prototype-page .ascom-compass__signal:first-child { padding-inline-start: 0; }

.ascom-prototype-page .ascom-compass__signal--deadline { --ascom-signal-accent: #ed1c24; }
.ascom-prototype-page .ascom-compass__signal--opportunity { --ascom-signal-accent: #00b83e; }
.ascom-prototype-page .ascom-compass__signal--territory { --ascom-signal-accent: var(--ascom-blue); }
.ascom-prototype-page .ascom-compass__signal--news { --ascom-signal-accent: var(--ascom-gold); }

/* La barra di hover usa lo stesso token del cerchio: niente discrepanze tra
 * stato normale, tastiera e puntatore. */
.ascom-prototype-page .ascom-compass__signal::before {
    background: var(--ascom-signal-accent);
    transition: opacity 160ms ease;
}

.ascom-prototype-page .ascom-compass__icon {
    width: clamp(2.25rem, 1.6vw, 2.5rem);
    height: clamp(2.25rem, 1.6vw, 2.5rem);
    grid-row: 1 / -1;
    display: grid;
    place-items: center;
    margin: 0 !important;
    border-radius: 50%;
    color: var(--ascom-color-white) !important;
    font: 700 .95rem/1 var(--ascom-display);
}

.ascom-prototype-page .ascom-compass__icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.ascom-prototype-page .ascom-compass__icon { background: var(--ascom-signal-accent); }

.ascom-prototype-page .ascom-compass__meta {
    margin: 0;
    color: var(--ascom-action);
    font: 700 clamp(.72rem, .65vw, .86rem)/1.1 var(--ascom-display);
    text-transform: none;
    letter-spacing: 0;
}

.ascom-prototype-page .ascom-compass__signal--news .ascom-compass__meta { color: var(--ascom-color-warning); }

.ascom-prototype-page .ascom-compass__signal strong {
    min-width: 0;
    color: var(--ascom-navy);
    font-size: clamp(.84rem, .73vw, 1rem);
    line-height: 1.25;
    -webkit-line-clamp: 1;
}

@media (max-width: 900px) {
    .ascom-prototype-page { --ascom-shell-gutter: var(--ascom-layout-gutter); }
    .ascom-prototype-page .ascom-header__inner {
        min-height: 76px;
        grid-template-columns: minmax(120px, 1fr) auto minmax(0, auto);
        gap: 1rem;
    }
    .ascom-prototype-page .ascom-navigation ul { gap: .8rem; }
    .ascom-prototype-page .ascom-navigation a { font-size: clamp(.78rem, .7rem + .2vw, .95rem); }
    .ascom-prototype-page .ascom-header__member { padding-inline: 1rem; }
}

@media (max-width: 680px) {
    .ascom-prototype-page { --ascom-shell-gutter: var(--ascom-layout-gutter); }
    .ascom-prototype-page .ascom-utility__primary > a:not(.ascom-utility__account),
    .ascom-prototype-page .ascom-utility__links > a:first-child,
    .ascom-prototype-page .ascom-utility__links > a:nth-child(2) { display: none; }
    .ascom-prototype-page .ascom-utility__inner { min-height: 48px; }
    .ascom-prototype-page .ascom-header__inner {
        min-height: 76px;
        display: flex;
        flex-wrap: wrap;
        gap: .5rem 1rem;
    }
    .ascom-prototype-page .ascom-brand { margin-right: auto; }
    .ascom-prototype-page .ascom-header__actions { margin-left: auto; }
    .ascom-prototype-page .ascom-menu-toggle { display: inline-flex; }
    .ascom-prototype-page .ascom-navigation { flex: 1 0 100%; }
    .ascom-prototype-page .ascom-navigation a { min-height: 44px; }
    .ascom-prototype-page .ascom-compass__signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ascom-prototype-page .ascom-compass__signal { min-height: 64px; }
    .ascom-prototype-page .ascom-compass__signal:nth-child(3),
    .ascom-prototype-page .ascom-compass__signal:nth-child(4) { border-top: 1px solid var(--ascom-line); }
    .ascom-prototype-page .ascom-compass__signal:nth-child(3) { border-left: 0; }
}

/* Homepage news hero — editorial composition from the Figma reference. */
.ascom-prototype-page .ascom-home-news-hero {
    padding-block: clamp(2rem, 4vw, 4.75rem);
    background: var(--ascom-color-soft);
}

.ascom-prototype-page .ascom-home-news-hero__grid {
    width: calc(100% - (2 * var(--ascom-shell-gutter)));
    max-width: var(--ascom-shell-max-width);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(19rem, .95fr);
    gap: clamp(1rem, 2.5vw, 3.5rem);
    align-items: stretch;
}

.ascom-prototype-page .ascom-home-news-hero__main {
    min-width: 0;
    padding: clamp(.8rem, 1.25vw, 1.35rem);
    border: 1px solid var(--ascom-color-line);
    border-radius: var(--ascom-radius-lg);
    background: var(--ascom-color-soft);
    box-shadow: none;
}

.ascom-prototype-page .ascom-home-news-hero__main-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: calc(var(--ascom-radius-lg) - .35rem);
    background: var(--ascom-color-white);
}

.ascom-prototype-page .ascom-home-news-hero__sidebar {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ascom-color-line);
    border-radius: var(--ascom-radius-lg);
    background: var(--ascom-color-white);
    box-shadow: none;
}

.ascom-prototype-page .ascom-home-news-hero__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2.62 / 1;
    background: var(--ascom-color-blue-soft);
}

.ascom-prototype-page .ascom-home-news-hero__media img,
.ascom-prototype-page .ascom-home-news-hero__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.ascom-prototype-page .ascom-home-news-hero__media:hover img,
.ascom-prototype-page .ascom-home-news-hero__media:focus-visible img {
    transform: scale(1.025);
}

.ascom-prototype-page .ascom-home-news-hero__placeholder {
    background: linear-gradient(125deg, var(--ascom-color-blue-soft), var(--ascom-color-sky));
}

.ascom-prototype-page .ascom-home-news-hero__tag,
.ascom-prototype-page .ascom-home-news-hero__item-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: var(--ascom-radius-pill);
    color: var(--ascom-color-white);
    background: var(--ascom-color-blue);
    font-size: clamp(.72rem, .68vw, .9rem);
    font-weight: 600;
    line-height: 1;
}

.ascom-prototype-page .ascom-home-news-hero__tag {
    position: absolute;
    top: clamp(1rem, 1.7vw, 2rem);
    left: clamp(1rem, 2vw, 2.5rem);
    padding: .65rem 1rem;
}

.ascom-prototype-page .ascom-home-news-hero__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(1.4rem, 2.6vw, 3.25rem);
    background: var(--ascom-color-soft);
}

.ascom-prototype-page .ascom-home-news-hero__body h1 {
    max-width: 17ch;
    margin: 0;
    color: var(--ascom-color-heading);
    font-size: clamp(2.25rem, 3.75vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.035em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ascom-prototype-page .ascom-home-news-hero__body h1 a {
    color: inherit;
    text-decoration: none;
}

.ascom-prototype-page .ascom-home-news-hero__body h1 a:hover,
.ascom-prototype-page .ascom-home-news-hero__body h1 a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .1em;
}

.ascom-prototype-page .ascom-home-news-hero__lead {
    max-width: 58rem;
    margin: clamp(1rem, 1.5vw, 1.6rem) 0 clamp(1.3rem, 2vw, 2rem);
    color: var(--ascom-color-blue);
    font-size: clamp(1rem, 1.35vw, 1.45rem);
    line-height: 1.45;
}

.ascom-prototype-page .ascom-home-news-hero__body .ascom-button {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 3.6rem;
    padding: 1rem 2.2rem;
    border: 0;
    border-radius: 1rem;
    background: var(--ascom-color-blue);
    color: var(--ascom-color-white) !important;
    font-size: clamp(.95rem, 1.05vw, 1.15rem);
}

.ascom-prototype-page .ascom-home-news-hero__body .ascom-button:hover,
.ascom-prototype-page .ascom-home-news-hero__body .ascom-button:focus-visible {
    border-color: var(--ascom-color-navy);
    background: var(--ascom-color-navy);
    color: var(--ascom-color-white) !important;
}

.ascom-prototype-page .ascom-home-news-hero__sidebar {
    padding: clamp(1.4rem, 2.6vw, 3.25rem);
}

.ascom-prototype-page .ascom-home-news-hero__sidebar h2 {
    margin: 0;
    padding-bottom: clamp(1rem, 1.4vw, 1.5rem);
    border-bottom: 2px solid var(--ascom-color-blue-soft);
    color: var(--ascom-color-blue);
    font-size: clamp(1.45rem, 2vw, 2.25rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ascom-prototype-page .ascom-home-news-hero__item {
    padding-block: clamp(1.15rem, 1.7vw, 1.8rem);
    border-bottom: 1px solid var(--ascom-color-line);
}

.ascom-prototype-page .ascom-home-news-hero__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ascom-prototype-page .ascom-home-news-hero__item-tag {
    margin-bottom: clamp(.65rem, .8vw, .9rem);
    padding: .55rem .9rem;
    background: var(--ascom-color-navy);
}

.ascom-prototype-page .ascom-home-news-hero__item:nth-child(2) .ascom-home-news-hero__item-tag { background: #b23f00; }
.ascom-prototype-page .ascom-home-news-hero__item:nth-child(3) .ascom-home-news-hero__item-tag { background: var(--ascom-color-blue); }

.ascom-prototype-page .ascom-home-news-hero__item h3 {
    margin: 0;
    color: var(--ascom-color-navy);
    font-size: clamp(1.05rem, 1.35vw, 1.55rem);
    line-height: 1.2;
}

.ascom-prototype-page .ascom-home-news-hero__item h3 a {
    color: inherit;
    text-decoration: none;
}

.ascom-prototype-page .ascom-home-news-hero__item h3 a:hover,
.ascom-prototype-page .ascom-home-news-hero__item h3 a:focus-visible {
    color: var(--ascom-color-blue);
    text-decoration: underline;
    text-underline-offset: .12em;
}

.ascom-prototype-page .ascom-home-news-hero__item p {
    margin: .6rem 0 0;
    color: var(--ascom-color-text-soft);
    font-size: clamp(.9rem, 1vw, 1.1rem);
    line-height: 1.45;
}

.ascom-prototype-page .ascom-home-news-hero__item-link {
    display: inline-flex;
    gap: .4rem;
    color: var(--ascom-color-blue);
    font-size: clamp(.78rem, .85vw, .95rem);
    font-weight: 700;
    text-decoration: none;
    margin-top: .7rem;
}

.ascom-prototype-page .ascom-home-news-hero__item-link:hover,
.ascom-prototype-page .ascom-home-news-hero__item-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.ascom-prototype-page .ascom-home-news-hero__sidebar:only-child { grid-column: 1 / -1; }

/* Four-card editorial strip below the hero. */
.ascom-prototype-page .ascom-home-news-grid {
    grid-column: 1 / -1;
    width: 100%;
    padding-block: clamp(2rem, 4vw, 4.75rem);
    background: transparent;
}

.ascom-prototype-page .ascom-home-news-grid__items {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.25vw, 3.25rem);
}

.ascom-prototype-page .ascom-home-news-grid__item { min-width: 0; }

.ascom-prototype-page .ascom-home-news-grid__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1.68 / 1;
    border-radius: clamp(.85rem, 1.2vw, 1.35rem);
    background: linear-gradient(135deg, var(--ascom-color-blue-soft), var(--ascom-color-sky));
}

.ascom-prototype-page .ascom-home-news-grid__media img,
.ascom-prototype-page .ascom-home-news-grid__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.ascom-prototype-page .ascom-home-news-grid__media:hover img,
.ascom-prototype-page .ascom-home-news-grid__media:focus-visible img { transform: scale(1.025); }

.ascom-prototype-page .ascom-home-news-grid__tag {
    position: absolute;
    top: clamp(.85rem, 1.35vw, 1.5rem);
    left: clamp(.85rem, 1.35vw, 1.5rem);
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 2rem);
    padding: .55rem 1rem;
    border-radius: var(--ascom-radius-pill);
    color: var(--ascom-color-white);
    background: var(--ascom-color-blue);
    font-size: clamp(.78rem, .9vw, 1.05rem);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ascom-prototype-page .ascom-home-news-grid__item:nth-child(1) .ascom-home-news-grid__tag { background: #b23f00; }
.ascom-prototype-page .ascom-home-news-grid__item:nth-child(2) .ascom-home-news-grid__tag { background: #00752b; }
.ascom-prototype-page .ascom-home-news-grid__item:nth-child(3) .ascom-home-news-grid__tag { background: var(--ascom-color-blue); }
.ascom-prototype-page .ascom-home-news-grid__item:nth-child(4) .ascom-home-news-grid__tag { background: #cba04d; color: var(--ascom-color-navy); }

.ascom-prototype-page .ascom-home-news-grid__item h3 {
    margin: clamp(.85rem, 1.25vw, 1.35rem) clamp(.65rem, 1vw, 1.25rem) 0;
    color: var(--ascom-color-blue);
    font-size: clamp(1.1rem, 1.45vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ascom-prototype-page .ascom-home-news-grid__item h3 a { color: inherit; text-decoration: none; }
.ascom-prototype-page .ascom-home-news-grid__item h3 a:hover,
.ascom-prototype-page .ascom-home-news-grid__item h3 a:focus-visible { text-decoration: underline; text-underline-offset: .12em; }

/* Press coverage and testimonials, sourced from the "Dicono di noi" news type. */
.ascom-prototype-page .ascom-home-press {
    padding-block: clamp(4rem, 8vw, 8.5rem);
    background: var(--ascom-color-soft);
}

.ascom-prototype-page .ascom-home-press__heading {
    margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}

.ascom-prototype-page .ascom-home-press__heading .ascom-eyebrow {
    margin: 0 0 .4rem;
    color: var(--ascom-color-warning);
    font: 700 clamp(.8rem, .95vw, 1rem)/1.3 var(--ascom-font-display);
    letter-spacing: .24em;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-home-press__heading h2 {
    margin: 0;
    color: #003a75;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    letter-spacing: -.035em;
    line-height: 1.05;
}

.ascom-prototype-page .ascom-home-press__track {
    --ascom-press-visible: 3;
    --ascom-press-gap: clamp(1rem, 4.2vw, 5.5rem);
    display: grid;
    grid-auto-columns: calc((100% - var(--ascom-press-gap) - var(--ascom-press-gap)) / 3);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: var(--ascom-press-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0 .35rem;
    scroll-padding-inline: .1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ascom-prototype-page .ascom-home-press__track::-webkit-scrollbar { display: none; }

.ascom-prototype-page .ascom-home-press__card {
    min-width: 0;
    min-height: clamp(15rem, 16vw, 19rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    border-left: 2px solid var(--ascom-color-gold, #cba04d);
    border-radius: clamp(1rem, 1.4vw, 1.5rem);
    padding: clamp(1.5rem, 2.7vw, 3.4rem);
    background: var(--ascom-color-white);
    color: #003a75;
    scroll-snap-align: start;
}

.ascom-prototype-page .ascom-home-press__source {
    margin: auto 0 clamp(1rem, 1.5vw, 1.4rem);
    color: var(--ascom-color-text-soft);
    font-size: clamp(.8rem, .9vw, 1rem);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-home-press__card h3 {
    margin: 0;
    color: #003a75;
    font-size: clamp(1.45rem, 1.75vw, 2rem);
    line-height: 1.22;
}

.ascom-prototype-page .ascom-home-press__card h3 a {
    color: inherit;
    text-decoration: none;
}

.ascom-prototype-page .ascom-home-press__card h3 a:hover,
.ascom-prototype-page .ascom-home-press__card h3 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .12em;
}

.ascom-prototype-page .ascom-home-press__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    padding-top: 1.2rem;
    color: var(--ascom-color-blue);
    font-size: clamp(.9rem, 1vw, 1.05rem);
    font-weight: 700;
    text-decoration: none;
}

.ascom-prototype-page .ascom-home-press__link:hover,
.ascom-prototype-page .ascom-home-press__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.ascom-prototype-page .ascom-home-press__card--testimonial {
    border-left: 0;
    background: #f2f2f2;
}

.ascom-prototype-page .ascom-home-press__person {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.4rem, 2vw, 2rem);
}

.ascom-prototype-page .ascom-home-press__avatar {
    width: clamp(3.25rem, 4.4vw, 4.5rem);
    aspect-ratio: 1;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--ascom-color-blue);
    color: var(--ascom-color-white);
    font-size: clamp(1.1rem, 1.4vw, 1.5rem);
    font-weight: 700;
}

.ascom-prototype-page .ascom-home-press__organization {
    margin: .2rem 0 0;
    color: var(--ascom-color-blue);
    font-size: clamp(.72rem, .78vw, .9rem);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-home-press__card blockquote {
    margin: auto 0 0;
    color: var(--ascom-color-text-soft);
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    line-height: 1.5;
}

.ascom-prototype-page .ascom-home-press__role {
    margin: .75rem 0 0;
    color: var(--ascom-color-text-soft);
    font-size: .9rem;
}

.ascom-prototype-page .ascom-home-press__pagination {
    display: flex;
    justify-content: center;
    gap: .85rem;
    margin-top: clamp(2.5rem, 4vw, 4rem);
}

.ascom-prototype-page .ascom-home-press__pagination[hidden] { display: none; }

.ascom-prototype-page .ascom-home-press__pagination button {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.ascom-prototype-page .ascom-home-press__pagination button::before {
    position: absolute;
    inset: 50% auto auto 50%;
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: #d9d9d9;
    content: "";
    transform: translate(-50%, -50%);
}

.ascom-prototype-page .ascom-home-press__pagination button[aria-current="true"] { background: transparent; }
.ascom-prototype-page .ascom-home-press__pagination button[aria-current="true"]::before { background: #003a75; }

.ascom-prototype-page .ascom-home-press__pagination button:focus-visible {
    outline: 2px solid #003a75;
    outline-offset: 3px;
}

/* Territory service showcase below the hero. */
.ascom-prototype-page .ascom-territory-feature {
    padding-block: clamp(3rem, 7vw, 8rem);
    background: var(--ascom-color-white);
}

.ascom-prototype-page .ascom-territory-feature__grid {
    width: calc(100% - (2 * var(--ascom-shell-gutter)));
    max-width: var(--ascom-shell-max-width);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 8rem);
    align-items: center;
}

.ascom-prototype-page .ascom-territory-feature__panel {
    min-width: 0;
    padding: clamp(2rem, 4.2vw, 5rem);
    border-radius: clamp(1.5rem, 2.5vw, 2.75rem);
    background: var(--ascom-color-heading);
    color: var(--ascom-color-navy);
}

.ascom-prototype-page .ascom-territory-feature__eyebrow {
    margin: 0 0 clamp(1.2rem, 2vw, 2rem);
    color: #cba04d;
    font-size: clamp(.75rem, .9vw, 1rem);
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-territory-feature__panel h2 {
    margin: 0;
    color: var(--ascom-color-white);
    font-size: clamp(2.25rem, 3.7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.ascom-prototype-page .ascom-territory-feature__panel > p:not(.ascom-territory-feature__eyebrow) {
    max-width: 38rem;
    margin: clamp(1.25rem, 2vw, 2rem) 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1rem, 1.25vw, 1.4rem);
    line-height: 1.45;
}

.ascom-prototype-page .ascom-territory-feature__pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: clamp(2rem, 4vw, 4rem);
}

.ascom-prototype-page .ascom-territory-feature__pillars article {
    min-width: 0;
    padding: clamp(1.25rem, 2vw, 2rem);
    border-radius: .75rem;
    background: var(--ascom-color-blue);
}

.ascom-prototype-page .ascom-territory-feature__pillar-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: #f3ad35;
}

.ascom-prototype-page .ascom-territory-feature__pillar-icon svg,
.ascom-prototype-page .ascom-territory-feature__list-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.ascom-prototype-page .ascom-territory-feature__pillars h3 {
    margin: clamp(1rem, 1.6vw, 1.5rem) 0 0;
    color: var(--ascom-color-white);
    font-size: clamp(1.2rem, 1.5vw, 1.7rem);
}

.ascom-prototype-page .ascom-territory-feature__pillars p {
    margin: .75rem 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(.95rem, 1.1vw, 1.25rem);
    line-height: 1.4;
}

.ascom-prototype-page .ascom-territory-feature__content { min-width: 0; }

.ascom-prototype-page .ascom-territory-feature__content h2 {
    margin: 0;
    color: var(--ascom-color-blue);
    font-size: clamp(2.25rem, 3.7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.ascom-prototype-page .ascom-territory-feature__content > p {
    margin: clamp(1.25rem, 2vw, 2rem) 0 0;
    color: var(--ascom-color-blue);
    font-size: clamp(1rem, 1.25vw, 1.4rem);
    line-height: 1.5;
}

.ascom-prototype-page .ascom-territory-feature__content ul {
    display: grid;
    gap: clamp(1.5rem, 2.5vw, 2.75rem);
    margin: clamp(2rem, 4vw, 4rem) 0 0;
    padding: 0;
    list-style: none;
}

.ascom-prototype-page .ascom-territory-feature__content li { display: flex; align-items: flex-start; gap: 1.25rem; }

.ascom-prototype-page .ascom-territory-feature__list-icon {
    flex: 0 0 3.25rem;
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    padding: .75rem;
    border-radius: 50%;
    color: var(--ascom-color-white);
    background: var(--ascom-color-blue);
}

.ascom-prototype-page .ascom-territory-feature__content li strong {
    display: block;
    color: var(--ascom-color-blue);
    font-size: clamp(1.25rem, 1.65vw, 1.75rem);
    line-height: 1.2;
}

.ascom-prototype-page .ascom-territory-feature__content li small {
    display: block;
    margin-top: .25rem;
    color: var(--ascom-color-blue);
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    line-height: 1.35;
}

.ascom-prototype-page .ascom-territory-feature__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-width: min(100%, 24rem);
    margin-top: clamp(2rem, 4vw, 4rem);
    padding: 1.2rem 2rem;
    border-radius: var(--ascom-radius-pill);
    color: var(--ascom-color-navy);
    background: #cba04d;
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-territory-feature__cta:hover,
.ascom-prototype-page .ascom-territory-feature__cta:focus-visible { background: #b3883b; color: var(--ascom-color-navy); }

@media (max-width: 900px) {
    .ascom-prototype-page .ascom-home-news-hero__grid { grid-template-columns: 1fr; }
    .ascom-prototype-page .ascom-home-news-hero__body h1 { max-width: 18ch; }
    .ascom-prototype-page .ascom-home-news-hero__sidebar { display: grid; grid-template-columns: minmax(0, 1fr); }
    .ascom-prototype-page .ascom-home-news-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ascom-prototype-page .ascom-home-press__track {
        --ascom-press-visible: 2;
        --ascom-press-gap: clamp(1rem, 3vw, 2rem);
        grid-auto-columns: calc((100% - var(--ascom-press-gap)) / 2);
    }
    .ascom-prototype-page .ascom-territory-feature__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 52rem) {
    .ascom-prototype-page .ascom-header__inner { min-height: 76px; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
    .ascom-prototype-page .ascom-brand { margin-right: auto; }
    .ascom-prototype-page .ascom-header__actions { margin-left: auto; }
    .ascom-prototype-page .ascom-menu-toggle { display: inline-flex; }
    .ascom-prototype-page .ascom-navigation { flex: 1 0 100%; }
    .ascom-prototype-page .ascom-navigation a { min-height: 44px; }
}

@media (max-width: 560px) {
    .ascom-prototype-page .ascom-home-news-hero { padding-block: 1.25rem 2rem; }
    .ascom-prototype-page .ascom-home-news-hero__media { aspect-ratio: 4 / 3; }
    .ascom-prototype-page .ascom-home-news-hero__body,
    .ascom-prototype-page .ascom-home-news-hero__sidebar { padding: 1.25rem; }
    .ascom-prototype-page .ascom-home-news-grid__items { grid-template-columns: 1fr; }
    .ascom-prototype-page .ascom-home-press__track {
        --ascom-press-visible: 1;
        --ascom-press-gap: 1rem;
        grid-auto-columns: 100%;
    }
    .ascom-prototype-page .ascom-territory-feature__pillars { grid-template-columns: 1fr; }
    .ascom-prototype-page .ascom-territory-feature__cta { min-width: 0; width: 100%; }
}

/* Activity → federation → solution finder, aligned to the homepage Figma system. */
.ascom-prototype-page .ascom-home-finder {
    padding-block: clamp(3rem, 7vw, 8rem);
    background: var(--ascom-color-soft);
}

.ascom-prototype-page .ascom-home-finder__shell {
    width: calc(100% - (2 * var(--ascom-shell-gutter)));
    max-width: var(--ascom-shell-max-width);
    padding: clamp(.75rem, 1.25vw, 1.35rem);
    border: 1px solid var(--ascom-color-line);
    border-radius: clamp(1.5rem, 2vw, 2.25rem);
    background: transparent;
}

.ascom-prototype-page .ascom-home-finder__banner {
    min-height: clamp(18rem, 21vw, 23.75rem);
    padding: clamp(2.25rem, 5vw, 6.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    overflow: hidden;
    border-radius: clamp(1.25rem, 1.65vw, 1.75rem);
    background: var(--ascom-color-heading);
    color: var(--ascom-color-navy);
}

.ascom-prototype-page .ascom-home-finder__intro { min-width: 0; }

.ascom-prototype-page .ascom-home-finder__eyebrow {
    margin: 0 0 clamp(.75rem, 1.2vw, 1.25rem);
    color: var(--ascom-color-gold);
    font-size: clamp(.75rem, .85vw, 1rem);
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-home-finder__banner h2 {
    margin: 0;
    color: var(--ascom-color-white);
    font-size: clamp(2.65rem, 4vw, 5.15rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.ascom-prototype-page .ascom-home-finder__banner p:not(.ascom-home-finder__eyebrow) {
    max-width: 62rem;
    margin: clamp(1rem, 1.5vw, 1.5rem) 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    line-height: 1.45;
}

.ascom-prototype-page .ascom-home-finder__emblem {
    width: clamp(6.25rem, 9vw, 10.5rem);
    height: auto;
    margin-inline-end: clamp(.5rem, 2vw, 2rem);
    color: var(--ascom-color-cyan);
}

.ascom-prototype-page .ascom-home-finder__panel {
    margin-top: clamp(.75rem, 1.25vw, 1.35rem);
    padding: clamp(2rem, 5vw, 6rem);
    border: 1px solid rgba(219, 227, 235, .75);
    border-radius: clamp(1.25rem, 1.65vw, 1.75rem);
    background: var(--ascom-color-white);
}

.ascom-prototype-page .ascom-home-finder__form {
    display: grid;
    grid-template-columns: minmax(13rem, 20rem) minmax(13rem, 20rem) minmax(13rem, 18rem);
    align-items: end;
    gap: clamp(1rem, 2.5vw, 3.5rem);
}

.ascom-prototype-page .ascom-home-finder__field {
    min-width: 0;
}

.ascom-prototype-page .ascom-home-finder__field > label {
    display: block;
    margin: 0 0 .85rem .9rem;
    color: var(--ascom-color-heading);
    font-size: clamp(.72rem, .8vw, .95rem);
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-home-finder__control {
    position: relative;
    min-width: 0;
}

.ascom-prototype-page .ascom-home-finder__control :where(input, select) {
    width: 100%;
    min-height: clamp(3.25rem, 3.6vw, 4rem);
    margin: 0;
    padding: .75rem 3rem .75rem 1.5rem;
    border: 1px solid var(--ascom-color-line);
    border-radius: var(--ascom-radius-pill);
    outline: none;
    background: #f7f7f7;
    color: var(--ascom-color-heading);
    font: 500 clamp(1rem, 1.15vw, 1.3rem)/1.2 var(--ascom-font-body);
    appearance: none;
}

.ascom-prototype-page .ascom-home-finder__control select { background: var(--ascom-color-white); }

.ascom-prototype-page .ascom-home-finder__control--derived input[readonly] {
    background: var(--ascom-color-white);
    cursor: default;
}

.ascom-prototype-page .ascom-home-finder__control--derived input[readonly]:disabled {
    background: var(--ascom-color-soft);
    cursor: not-allowed;
}

.ascom-prototype-page .ascom-home-finder__control :where(input, select):hover:not(:disabled) {
    border-color: var(--ascom-color-gold);
}

.ascom-prototype-page .ascom-home-finder__control :where(input, select):focus-visible {
    border-color: var(--ascom-color-heading);
    outline: 3px solid color-mix(in srgb, var(--ascom-color-focus) 55%, transparent);
    outline-offset: 2px;
}

.ascom-prototype-page .ascom-home-finder__control :where(input, select):disabled {
    color: var(--ascom-color-muted);
    background: var(--ascom-color-soft);
    cursor: not-allowed;
}

.ascom-prototype-page .ascom-home-finder__listbox {
    position: absolute;
    z-index: 20;
    inset: calc(100% + .35rem) 0 auto;
    max-height: 16rem;
    overflow-y: auto;
    padding: .35rem;
    border: 1px solid var(--ascom-color-line);
    border-radius: .8rem;
    background: var(--ascom-color-white);
    box-shadow: 0 12px 28px rgb(0 58 117 / 12%);
}

.ascom-prototype-page .ascom-home-finder__listbox[hidden] { display: none; }

.ascom-prototype-page .ascom-home-finder__option {
    display: block;
    width: 100%;
    padding: .7rem .85rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--ascom-color-heading);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.ascom-prototype-page .ascom-home-finder__option:hover,
.ascom-prototype-page .ascom-home-finder__option:focus-visible {
    background: var(--ascom-color-sky);
    outline: 0;
}

.ascom-prototype-page .ascom-home-finder__option[hidden] { display: none; }

.ascom-prototype-page .ascom-home-finder__control--search input::-webkit-search-cancel-button { margin-inline-end: .25rem; }

.ascom-prototype-page .ascom-home-finder__chevron {
    position: absolute;
    top: 50%;
    right: 1.55rem;
    width: .65rem;
    height: .65rem;
    border-right: 2px solid var(--ascom-color-gold);
    border-bottom: 2px solid var(--ascom-color-gold);
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.ascom-prototype-page .ascom-home-finder__submit {
    min-height: clamp(3.25rem, 3.6vw, 4rem);
    padding: .75rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid var(--ascom-color-gold);
    border-radius: var(--ascom-radius-pill);
    background: var(--ascom-color-gold);
    color: var(--ascom-color-navy);
    font: 500 clamp(1rem, 1.1vw, 1.25rem)/1 var(--ascom-font-body);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ascom-prototype-page .ascom-home-finder__submit svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: var(--ascom-color-navy);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.ascom-prototype-page .ascom-home-finder__submit:hover:not(:disabled) {
    border-color: #b58c3f;
    background: #b58c3f;
    transform: translateY(-1px);
}

.ascom-prototype-page .ascom-home-finder__submit:focus-visible,
.ascom-prototype-page .ascom-home-finder__retry:focus-visible {
    outline: 3px solid var(--ascom-color-focus);
    outline-offset: 3px;
}

.ascom-prototype-page .ascom-home-finder__submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ascom-prototype-page .ascom-home-finder__spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: var(--ascom-color-white);
    border-radius: 50%;
    animation: ascom-finder-spin 700ms linear infinite;
}

.ascom-prototype-page .ascom-home-finder.is-loading .ascom-home-finder__spinner { display: inline-block; }
.ascom-prototype-page .ascom-home-finder.is-loading .ascom-home-finder__submit svg { display: none; }

@keyframes ascom-finder-spin { to { transform: rotate(360deg); } }

.ascom-prototype-page .ascom-home-finder__status {
    grid-column: 1 / -1;
    min-height: 1.4em;
    margin: -.4rem 0 0;
    color: var(--ascom-color-muted);
    font-size: clamp(.8rem, .78vw, .9rem);
    line-height: 1.4;
}

.ascom-prototype-page .ascom-home-finder__results {
    margin-top: clamp(2.25rem, 4vw, 4.5rem);
    padding-top: clamp(2rem, 3vw, 3rem);
    border-top: 1px solid var(--ascom-color-line);
}

.ascom-prototype-page .ascom-home-finder__results[hidden] { display: none; }

.ascom-prototype-page .ascom-home-finder__summary {
    max-width: 60rem;
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.ascom-prototype-page .ascom-home-finder__summary h3,
.ascom-prototype-page .ascom-home-finder__result-section > h3,
.ascom-prototype-page .ascom-home-finder__empty h3,
.ascom-prototype-page .ascom-home-finder__error h3 {
    margin: 0;
    color: var(--ascom-color-heading);
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    line-height: 1.15;
}

.ascom-prototype-page .ascom-home-finder__summary p {
    margin: .75rem 0 0;
    color: var(--ascom-color-text-soft);
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    line-height: 1.55;
}

.ascom-prototype-page .ascom-home-finder__sector {
    display: inline-flex;
    margin-top: 1rem;
    padding: .45rem .8rem;
    border-radius: var(--ascom-radius-pill);
    background: var(--ascom-color-sky);
    color: var(--ascom-color-heading);
    font-size: .85rem;
    font-weight: 650;
}

.ascom-prototype-page .ascom-home-finder__result-section + .ascom-home-finder__result-section {
    margin-top: clamp(3rem, 5vw, 5rem);
}

.ascom-prototype-page .ascom-home-finder__result-section > h3 { margin-bottom: 1.5rem; }

.ascom-prototype-page .ascom-home-finder__result-section > h4 {
    margin: clamp(2rem, 3vw, 3rem) 0 1rem;
    color: var(--ascom-color-heading);
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    font-weight: 700;
}

.ascom-prototype-page .ascom-home-finder__result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 30rem));
    gap: clamp(1rem, 1.8vw, 1.75rem);
}

.ascom-prototype-page .ascom-home-finder__card {
    position: relative;
    min-width: 0;
    padding: clamp(1.25rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: .8rem;
    background: #f1f6fc;
    color: var(--ascom-color-heading);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.ascom-prototype-page a.ascom-home-finder__card:hover,
.ascom-prototype-page a.ascom-home-finder__card:focus-visible {
    border-color: var(--ascom-color-blue);
    color: var(--ascom-color-heading);
    transform: translateY(-2px);
}

.ascom-prototype-page a.ascom-home-finder__card:focus-visible {
    outline: 3px solid var(--ascom-color-focus);
    outline-offset: 3px;
}

.ascom-prototype-page .ascom-home-finder__card--suggested {
    border-color: var(--ascom-color-gold);
    border-style: dashed;
    background: var(--ascom-color-gold-soft);
}

.ascom-prototype-page .ascom-home-finder__card--solution { background: var(--ascom-color-white); border-color: var(--ascom-color-line); }
.ascom-prototype-page .ascom-home-finder__card--solution.ascom-home-finder__card--suggested { border-color: var(--ascom-color-gold); background: var(--ascom-color-gold-soft); }

.ascom-prototype-page .ascom-home-finder__badge {
    display: inline-flex;
    margin-bottom: .9rem;
    padding: .35rem .65rem;
    border-radius: var(--ascom-radius-pill);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1;
}

.ascom-prototype-page .ascom-home-finder__badge--verified { background: var(--ascom-color-heading); color: var(--ascom-color-white); }
.ascom-prototype-page .ascom-home-finder__badge--suggested { background: var(--ascom-color-gold); color: var(--ascom-color-navy); }

.ascom-prototype-page .ascom-home-finder__card-type {
    color: var(--ascom-color-warning);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ascom-prototype-page .ascom-home-finder__card-title {
    margin-top: .35rem;
    color: var(--ascom-color-blue);
    font-size: clamp(1.15rem, 1.4vw, 1.55rem);
    line-height: 1.25;
}

.ascom-prototype-page .ascom-home-finder__card p {
    margin: 1rem 0 0;
    color: var(--ascom-color-text-soft);
    line-height: 1.5;
}

.ascom-prototype-page .ascom-home-finder__card small {
    margin-top: .75rem;
    color: var(--ascom-color-warning);
    line-height: 1.45;
}

.ascom-prototype-page .ascom-home-finder__card-action {
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--ascom-color-blue);
    font-weight: 700;
}

.ascom-prototype-page .ascom-home-finder__empty,
.ascom-prototype-page .ascom-home-finder__error,
.ascom-prototype-page .ascom-home-finder__fallback {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-left: .3rem solid var(--ascom-color-blue);
    background: var(--ascom-color-soft);
}

.ascom-prototype-page .ascom-home-finder__error { border-left-color: var(--ascom-color-error); }
.ascom-prototype-page .ascom-home-finder__empty p,
.ascom-prototype-page .ascom-home-finder__error p { margin: .75rem 0 0; color: var(--ascom-color-text-soft); }

.ascom-prototype-page .ascom-home-finder__retry {
    margin-top: 1.25rem;
    padding: .8rem 1.25rem;
    border: 1px solid var(--ascom-color-heading);
    border-radius: var(--ascom-radius-pill);
    background: var(--ascom-color-heading);
    color: var(--ascom-color-white);
    font-weight: 650;
    cursor: pointer;
}

@media (max-width: 900px) {
    .ascom-prototype-page .ascom-home-finder__banner { min-height: 16rem; }
    .ascom-prototype-page .ascom-home-finder__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ascom-prototype-page .ascom-home-finder__submit { grid-column: 1 / -1; width: min(100%, 20rem); }
}

@media (max-width: 620px) {
    .ascom-prototype-page .ascom-home-finder { padding-block: 2rem; }
    .ascom-prototype-page .ascom-home-finder__shell { padding: .55rem; border-radius: 1.25rem; }
    .ascom-prototype-page .ascom-home-finder__banner {
        min-height: 0;
        padding: 2rem 1.5rem;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        border-radius: 1rem;
    }
    .ascom-prototype-page .ascom-home-finder__banner h2 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
    .ascom-prototype-page .ascom-home-finder__emblem { width: 5.5rem; margin: 0; }
    .ascom-prototype-page .ascom-home-finder__panel { margin-top: .55rem; padding: 1.5rem; border-radius: 1rem; }
    .ascom-prototype-page .ascom-home-finder__form { grid-template-columns: minmax(0, 1fr); }
    .ascom-prototype-page .ascom-home-finder__submit { grid-column: auto; width: 100%; }
    .ascom-prototype-page .ascom-home-finder__status { grid-column: auto; margin-top: 0; }
    .ascom-prototype-page .ascom-home-finder__result-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .ascom-prototype-page .ascom-home-finder__spinner { animation: none; }
    .ascom-prototype-page .ascom-home-finder__submit,
    .ascom-prototype-page .ascom-home-finder__card { transition: none; }
}

@media (forced-colors: active) {
    .ascom-prototype-page .ascom-home-finder__banner,
    .ascom-prototype-page .ascom-home-finder__card,
    .ascom-prototype-page .ascom-home-finder__empty,
    .ascom-prototype-page .ascom-home-finder__error { border: 1px solid CanvasText; }
    .ascom-prototype-page .ascom-home-finder__badge,
    .ascom-prototype-page .ascom-home-finder__sector { border: 1px solid CanvasText; }
}

/* Touch targets remain comfortable without changing the desktop composition. */
@media (max-width: 52rem) {
    .ascom-prototype-page .ascom-utility__account,
    .ascom-prototype-page .ascom-utility__search { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
    .ascom-prototype-page .ascom-home-news-hero__item h3 a,
    .ascom-prototype-page .ascom-home-news-grid__item h3 a { display: flex; min-height: 44px; align-items: center; }
    .ascom-prototype-page .ascom-home-news-hero__item-link,
    .ascom-prototype-page .ascom-home-press__link { display: inline-flex; min-height: 44px; align-items: center; }
    .ascom-prototype-page .ascom-footer-locator__contact a,
    .ascom-prototype-page .ascom-footer-locator__nearest-links a,
    .ascom-prototype-page .ascom-footer__nav a,
    .ascom-prototype-page .ascom-footer__bottom nav a { min-height: 44px; align-items: center; }
    .ascom-prototype-page .ascom-footer__bottom > p > a { display: inline-flex; min-height: 44px; align-items: center; }
    .ascom-prototype-page .ascom-footer-locator__search input { height: 2.75rem; min-height: 2.75rem; }
    .ascom-prototype-page .ascom-footer-locator .leaflet-control-zoom a {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }
}
