/* ============================================================
   Gruppo Cedir — Home page dedicata
   Design system riutilizzato dal sito Cedir (variabili, bottoni,
   eyebrow, reveal). Componenti originali definiti qui sotto.
   ============================================================ */

.gruppo-home-page {
    --gh-blue: var(--blue);
    --gh-blue-dark: var(--blue-dark);
    --gh-panel: var(--panel-blue);
    --gh-ink: var(--charcoal);
    --gh-muted: var(--muted);
    --gh-line: var(--line);
    --gh-surface: var(--surface);
    --gh-surface-soft: var(--surface-soft);
    --gh-background: var(--background);
    --gh-white: var(--white);
    background: var(--gh-background);
    color: var(--gh-ink);
}

/* ===== Hero: metà superiore hero originale, metà inferiore pannelli obliqui ===== */
.gh-hero--split {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--gh-white);
    background: var(--gh-ink);
}

/* --- Metà superiore: hero originale (video + contenuto) --- */
.gh-hero__top {
    position: relative;
    flex: 1 1 70%;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gh-hero__media,
.gh-hero__shade {
    position: absolute;
    inset: 0;
}

.gh-hero__video,
.gh-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center;
    background-size: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}

.gh-hero__video.is-visible,
.gh-hero__image.is-visible {
    opacity: 1;
}

.gh-hero__slide-data {
    display: none;
}

.gh-hero__shade {
    background:
        linear-gradient(180deg, rgba(10, 12, 14, .04) 0%, rgba(10, 12, 14, .1) 42%, rgba(10, 12, 14, .26) 72%, rgba(10, 12, 14, .48) 100%),
        linear-gradient(90deg, rgba(31, 31, 31, .78), rgba(31, 31, 31, .34) 55%, rgba(31, 31, 31, 0));
    transition: background .6s ease;
}

/* --- Tema chiaro: pannello bianco a sinistra che sfuma verso il video --- */
.gh-hero__top.is-light .gh-hero__shade {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .05) 42%, rgba(255, 255, 255, .14) 72%, rgba(255, 255, 255, .3) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 33%, rgba(255, 255, 255, 0) 66%);
}

.gh-hero__top.is-light .gh-hero__title,
.gh-hero__top.is-light .gh-hero .eyebrow {
    color: var(--gh-ink);
}

.gh-hero__top.is-light .gh-hero__title em {
    color: var(--gh-panel);
}

.gh-hero__top.is-light .gh-hero__lead {
    color: rgba(31, 31, 31, .82);
}

.gh-hero__top.is-light .button--ghost-light {
    border-color: rgba(31, 31, 31, .5);
    color: var(--gh-ink);
}

.gh-hero__top.is-light .button--ghost-light:hover {
    background: var(--gh-ink);
    color: var(--gh-white);
    border-color: var(--gh-ink);
}

.gh-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 740px) minmax(380px, 430px);
    justify-content: space-between;
    align-items: center;
    gap: clamp(28px, 5vw, 84px);
    padding: 60px var(--page-pad);
}

.gh-hero__content {
    width: min(760px, 100%);
    text-align: left;
}

.gh-hero .eyebrow {
    color: var(--gh-white);
}

.gh-hero__title {
    margin: 0 0 22px;
    color: var(--gh-white);
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.gh-hero__title em {
    color: var(--gh-white);
    font-style: normal;
    font-weight: 600;
}

.gh-hero__lead {
    width: min(570px, 100%);
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
}

.gh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gh-hero__actions .button--dark {
    background: var(--gh-panel);
    border-color: var(--gh-panel);
}

.button--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: var(--gh-white);
}

.button--ghost-light:hover {
    background: var(--gh-white);
    color: var(--gh-ink);
    border-color: var(--gh-white);
}

/* --- Metà inferiore: tre sezioni oblique, una per centro --- */
.gh-panels {
    position: relative;
    flex: 1 1 30%;
    min-height: 0;
    display: flex;
    width: 100%;
    border-top: 2px solid var(--gh-white);
}

.gh-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: flex-grow .7s cubic-bezier(.4, 0, .2, 1);
    color: var(--gh-white);
    background: var(--gh-ink);
}

.gh-panel + .gh-panel {
    border-left: 2px solid var(--gh-white);
}

.gh-panel__bg,
.gh-panel__shade {
    position: absolute;
    inset: 0;
}

.gh-panel__bg {
    left: 0;
    width: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: scale(1.05);
    transition: left .7s cubic-bezier(.4, 0, .2, 1), width .7s cubic-bezier(.4, 0, .2, 1), opacity .5s ease, transform .7s cubic-bezier(.4, 0, .2, 1);
}

.gh-panel__shade {
    background: linear-gradient(180deg, rgba(4, 5, 7, .65) 0%, rgba(4, 5, 7, .8) 100%);
    transition: opacity .5s cubic-bezier(.4, 0, .2, 1);
}

.gh-panel__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-align: center;
    padding: 0 24px 44px;
    background: transparent;
    transition: background .6s cubic-bezier(.4, 0, .2, 1), align-items .5s cubic-bezier(.4, 0, .2, 1), justify-content .5s cubic-bezier(.4, 0, .2, 1), text-align .5s cubic-bezier(.4, 0, .2, 1), padding .5s cubic-bezier(.4, 0, .2, 1);
}

.gh-panel__logo {
    max-width: 56%;
    max-height: clamp(28px, calc(0.9375vw + 16px), 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform .5s cubic-bezier(.4, 0, .2, 1), filter .4s ease .1s;
}

.gh-panel__title {
    font-family: var(--font-display);
    font-size: clamp(12.75px, calc(0.234375vw + 14px), 20px);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--gh-white);
    white-space: nowrap;
    transition: color .4s ease .12s;
}

.gh-panel__address {
    font-size: clamp(9.35px, calc(0.15234375vw + 9.1px), 13px);
    line-height: 1.4;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .8);
    transition: color .4s ease .12s;
}


/* Allargamento al passaggio del mouse */
.gh-panel:hover {
    flex-grow: 2.6;
}

/* Split-card: l'immagine si sposta nella metà destra, il testo su pannello bianco a sinistra */
.gh-panel:hover .gh-panel__bg {
    left: 50%;
    width: 50%;
    opacity: 1;
    transform: scale(1.12);
}

.gh-panel:hover .gh-panel__shade {
    opacity: 0;
}

.gh-panel:hover .gh-panel__inner {
    left: 0;
    width: 50%;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 16px;
    padding: 0 56px;
    background: var(--gh-white);
}

.gh-panel:hover .gh-panel__logo {
    transform: scale(1.06);
    filter: none;
}

.gh-panel:hover .gh-panel__title {
    color: var(--gh-ink);
}

.gh-panel:hover .gh-panel__address {
    color: rgba(31, 31, 31, .72);
}

/* --- Icona "+" per maggiori dettagli (angolo, visibile solo al hover) --- */
.gh-panel__more {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: var(--gh-white);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(.7);
    transition: opacity .3s cubic-bezier(.4, 0, .2, 1) .1s, transform .3s cubic-bezier(.4, 0, .2, 1) .1s, visibility .3s ease .1s, background .25s ease, border-color .25s ease;
}

.gh-panel:hover .gh-panel__more {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.gh-panel__more .material-symbols-outlined {
    font-size: 22px;
    font-weight: 600;
}

.gh-panel__more:hover {
    background: var(--gh-panel);
    border-color: var(--gh-panel);
    transform: scale(1) rotate(90deg);
}

/* --- Contatti che escono sotto l'indirizzo al passaggio del mouse --- */
.gh-panel__contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .45s cubic-bezier(.4, 0, .2, 1) .1s, transform .45s cubic-bezier(.4, 0, .2, 1) .1s, visibility .45s ease .1s;
}

.gh-panel:hover .gh-panel__contacts {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    justify-content: flex-start;
}

.gh-panel__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(11.05px, calc(0.17578125vw + 10.5px), 15px);
    font-weight: 600;
    color: var(--gh-white);
    line-height: 1.2;
    text-decoration: none;
    transition: color .25s ease;
}

.gh-panel__contact .material-symbols-outlined {
    font-size: 20px;
    font-weight: 700;
    color: var(--gh-panel);
}

.gh-panel__contact:hover {
    color: var(--gh-panel);
}

.gh-panel:hover .gh-panel__contact {
    color: var(--gh-ink);
}

.gh-panel:hover .gh-panel__contact:hover {
    color: var(--gh-panel);
}

/* --- Bottone "Vai al sito" in fondo al pannello --- */
.gh-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--gh-panel);
    color: var(--gh-white);
    font-size: clamp(11.05px, calc(0.17578125vw + 10.5px), 15px);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .45s cubic-bezier(.4, 0, .2, 1) .18s, transform .45s cubic-bezier(.4, 0, .2, 1) .18s, visibility .45s ease .18s, background .25s ease;
}

.gh-panel__cta .material-symbols-outlined {
    font-size: 18px;
    font-weight: 600;
    transition: transform .25s ease;
}

.gh-panel:hover .gh-panel__cta {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gh-panel__cta:hover {
    background: var(--gh-ink);
}

.gh-panel__cta:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* ===== Headings ===== */
.gh-heading {
    max-width: 860px;
    margin-bottom: clamp(40px, 5vw, 60px);
}

.gh-heading--center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gh-heading h2 {
    margin: 12px 0 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.gh-heading p {
    margin: 18px 0 0;
    color: var(--gh-muted);
    font-size: 17px;
    line-height: 1.65;
}

/* ===== Servizi ===== */
.gh-servizi--cedir {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 9vw, 120px) 0;
    background: var(--gh-surface-soft);
}

.gh-servizi__mark {
    position: absolute;
    left: 0;
    bottom: 0;
    width: clamp(420px, 46vw, 760px);
    opacity: .14;
    pointer-events: none;
    user-select: none;
}

.gh-servizi--cedir .section-inner {
    position: relative;
    z-index: 1;
}

.gh-servizi__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(34px, 5vw, 70px) clamp(34px, 6vw, 96px);
}

.gh-service {
    display: block;
    min-height: 170px;
    padding-top: 28px;
    border-top: 1px solid rgba(116, 120, 120, .35);
    cursor: default;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease;
}

.gh-service:hover {
    transform: translateY(-8px);
    border-color: var(--gh-blue);
}

.gh-service__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.gh-service__heading img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    transition: transform .25s ease;
}

.gh-service:hover .gh-service__heading img {
    transform: scale(1.08);
}

.gh-service h3 {
    margin: 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    transition: color .25s ease;
}

.gh-service:hover h3 {
    color: var(--gh-blue);
}

.gh-service p {
    margin: 0;
    color: #444748;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Rete / Centri ===== */
.gh-rete {
    padding: clamp(76px, 9vw, 120px) 0;
}

.gh-rete__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
}

.gh-center {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid var(--gh-line);
    border-radius: 20px;
    background: var(--gh-surface);
    box-shadow: 0 10px 30px rgba(31, 31, 31, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gh-center:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 88, 181, .4);
    box-shadow: 0 20px 44px rgba(0, 88, 181, .12);
}

.gh-center__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.gh-center__number {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 300;
    color: rgba(0, 88, 181, .3);
    line-height: 1;
}

.gh-center__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf3fb;
    color: var(--gh-blue);
    font-size: 24px;
}

.gh-center__logo {
    max-height: 34px;
    width: auto;
    object-fit: contain;
}

.gh-center h3 {
    margin: 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 500;
    letter-spacing: -.02em;
}

.gh-center__place {
    margin: 6px 0 0;
    color: var(--gh-blue);
    font-size: 14px;
    font-weight: 700;
}

.gh-center__address {
    margin: 10px 0 0;
    color: var(--gh-muted);
    font-size: 14px;
    line-height: 1.5;
}

.gh-center__focus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.gh-center__focus li {
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--gh-surface-soft);
    color: var(--gh-panel);
    font-size: 12px;
    font-weight: 700;
}

.gh-center__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.gh-center__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gh-blue);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.gh-center__link .material-symbols-outlined { font-size: 18px; transition: transform .2s ease; }
.gh-center__link:hover .material-symbols-outlined { transform: translateX(3px); }

.gh-center__map {
    color: var(--gh-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.gh-center__map:hover { color: var(--gh-blue); }

/* ===== Valori ===== */
.gh-valori {
    padding: clamp(76px, 9vw, 120px) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
    border-top: 1px solid rgba(196, 199, 199, .5);
    border-bottom: 1px solid rgba(196, 199, 199, .5);
}

.gh-valori__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
}

.gh-value {
    padding: clamp(24px, 2.5vw, 32px);
    border-radius: 18px;
    background: var(--gh-surface);
    border: 1px solid var(--gh-line);
    box-shadow: 0 8px 24px rgba(31, 31, 31, .04);
}

.gh-value__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf3fb 0%, #dcebfa 100%);
    color: var(--gh-blue);
    font-size: 27px;
}

.gh-value h3 {
    margin: 18px 0 0;
    color: var(--gh-ink);
    font-size: 18px;
    line-height: 1.3;
}

.gh-value p {
    margin: 10px 0 0;
    color: var(--gh-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Aggiornamenti ===== */
.gh-updates {
    padding: clamp(76px, 9vw, 120px) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
    border-top: 1px solid rgba(196, 199, 199, .5);
    border-bottom: 1px solid rgba(196, 199, 199, .5);
}

.gh-update__band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    margin-top: clamp(40px, 5vw, 64px);
}

.gh-update__band--reverse .gh-update__media { order: 2; }
.gh-update__band--reverse .gh-update__copy { order: 1; }

.gh-update__media {
    min-height: 360px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 60px rgba(31, 31, 31, .16);
}

.gh-update__copy .eyebrow { color: var(--gh-blue); }

.gh-update__copy h3 {
    margin: 12px 0 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.gh-update__copy > p {
    margin: 18px 0 0;
    color: var(--gh-muted);
    font-size: 16px;
    line-height: 1.65;
}

.gh-update__copy ul {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.gh-update__copy ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gh-ink);
    font-size: 15px;
    line-height: 1.5;
}

.gh-update__copy ul li .material-symbols-outlined {
    color: var(--gh-blue);
    font-size: 21px;
    flex-shrink: 0;
}

.gh-update__copy .button {
    margin-top: 28px;
}

/* ===== Newsletter ===== */
.gh-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    margin-top: clamp(48px, 6vw, 72px);
    padding: clamp(32px, 4vw, 48px);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gh-panel) 0%, var(--gh-blue-dark) 100%);
    color: var(--gh-white);
    box-shadow: 0 24px 60px rgba(0, 88, 181, .22);
}

.gh-newsletter__copy .eyebrow { color: #bcd9ff; }

.gh-newsletter__copy h3 {
    margin: 12px 0 0;
    color: var(--gh-white);
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.gh-newsletter__copy p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.6;
}

.gh-newsletter__form {
    display: flex;
    gap: 12px;
}

.gh-newsletter__form input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: var(--gh-white);
    font-size: 15px;
    outline: none;
}

.gh-newsletter__form input::placeholder { color: rgba(255, 255, 255, .7); }
.gh-newsletter__form input:focus { border-color: var(--gh-white); }

/* ===== Prenotazione ===== */
.gh-booking {
    position: relative;
    overflow: hidden;
    padding: clamp(88px, 11vw, 150px) 0;
    background-color: #000000;
    background-image: url('/img/senologiahero.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--gh-white);
}

/* Velatura sfumata come nelle hero della home Magliaro */
.gh-booking::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .72) 100%),
        linear-gradient(90deg, rgba(31, 31, 31, .86), rgba(31, 31, 31, .5) 52%, rgba(31, 31, 31, .18));
}

.gh-booking__inner {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) var(--page-pad);
    text-align: center;
}

.gh-booking__inner .eyebrow { color: #bcd9ff; }

.gh-booking__inner h2 {
    max-width: 820px;
    margin: 12px auto 0;
    color: var(--gh-white);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.gh-booking__lead {
    max-width: 640px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.6;
}

/* Box di ricerca stile home Magliaro */
.gh-booking .search-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    align-items: stretch;
    gap: 0;
    margin-top: 40px;
    padding: 8px;
    background: var(--gh-white);
    border-radius: 999px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .35);
}

.gh-booking .search-field,
.gh-booking .search-location {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    color: var(--gh-muted);
}

.gh-booking .search-field {
    border-right: 1px solid rgba(196, 199, 199, .65);
}

.gh-booking .search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gh-ink);
}

.gh-booking .search-field input::placeholder {
    color: var(--gh-muted);
}

.gh-booking .search-location {
    color: var(--gh-ink);
    white-space: nowrap;
}

.gh-booking .search-submit {
    min-height: 58px;
    padding: 0 34px;
}

.gh-booking__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

/* ===== Aree diagnostiche ===== */
.gh-aree {
    padding: clamp(76px, 9vw, 120px) 0;
    background: var(--gh-surface);
}

.gh-aree__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
}

.gh-area {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid var(--gh-line);
    border-radius: 20px;
    background: var(--gh-surface);
    box-shadow: 0 10px 30px rgba(31, 31, 31, .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gh-area:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 88, 181, .4);
    box-shadow: 0 20px 44px rgba(0, 88, 181, .12);
}

.gh-area__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eaf3fb 0%, #dcebfa 100%);
    color: var(--gh-blue);
    font-size: 28px;
}

.gh-area__tag {
    align-self: flex-start;
    margin: 20px 0 0;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--gh-surface-soft);
    color: var(--gh-panel);
    font-size: 12px;
    font-weight: 700;
}

.gh-area h3 {
    margin: 16px 0 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 500;
    letter-spacing: -.02em;
}

.gh-area p {
    margin: 10px 0 0;
    color: var(--gh-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Tecnologie ===== */
.gh-tech {
    padding: 0;
    background: #ffffff;
}

.gh-tech .section-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

.gh-tech .gh-heading {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(76px, 9vw, 120px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 72px);
}

/* --- Bande stile Magliaro (rm-category-comfort) --- */
.rm-category-comfort {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--panel-blue);
    color: var(--white);
    scroll-margin-top: 88px;
}

.rm-category-comfort__image {
    position: absolute;
    inset: 0 50% 0 0;
    background: url("/img/widebore.png") center center / cover no-repeat;
}

.rm-category-comfort__inner {
    position: relative;
    z-index: 1;
    width: 50%;
    min-height: 620px;
    margin-left: auto;
    padding: clamp(56px, 7vw, 96px);
    display: flex;
    align-items: center;
}

.rm-category-comfort--reverse .rm-category-comfort__image {
    inset: 0 0 0 50%;
}

.rm-category-comfort--reverse .rm-category-comfort__inner {
    margin-left: 0;
    margin-right: auto;
    padding-left: max(var(--page-pad), calc((100vw - var(--container)) / 2 - 8px));
}

.rm-category-comfort.home-update-band--blue {
    background: var(--panel-blue);
}

.rm-category-comfort.home-update-band--orange {
    background: #c85f16;
}

.home-update-band .rm-category-comfort__image {
    background-color: rgba(255, 255, 255, .08);
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(70%, 520px) auto;
}

.home-update-band--blue .rm-category-comfort__image {
    background-position: center;
    background-size: cover;
}

.home-update-band--orange .rm-category-comfort__image {
    background-position: center;
    background-size: cover;
}

.rm-category-comfort__copy {
    width: min(560px, 100%);
}

.rm-category-comfort .eyebrow {
    color: var(--white);
}

.rm-category-comfort h2 {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: 0;
}

.rm-category-comfort p {
    width: min(560px, 100%);
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.68;
}

.rm-category-comfort ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rm-category-comfort li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 1.6;
}

.rm-category-comfort li .material-symbols-outlined {
    color: #c8e6ff;
    flex: 0 0 auto;
    font-size: 24px;
}

.rm-category-comfort li span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.magliaro-service-note {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}

.home-update-band .button {
    margin-top: 24px;
}

.rm-category-comfort__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.rm-category-comfort__center {
    margin-top: 0 !important;
    min-height: 56px;
    padding: 14px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.rm-category-comfort__center:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

/* ===== CTA finale ===== */
/* ===== Mappa delle sedi ===== */
.gh-map {
    padding: clamp(76px, 9vw, 120px) 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
}

.gh-map__header {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.gh-map__header .eyebrow { color: var(--gh-blue); }

.gh-map__header h2 {
    margin: 12px 0 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.gh-map__header p {
    max-width: 640px;
    margin: 18px auto 0;
    color: var(--gh-muted);
    font-size: 17px;
    line-height: 1.65;
}

.gh-map__shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(196, 199, 199, .5);
}

.gh-map__canvas {
    width: 100%;
    height: clamp(420px, 52vw, 620px);
    z-index: 0;
}

.gh-map__canvas .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
}

.gh-map__overlay {
    position: absolute;
    top: clamp(20px, 4vw, 44px);
    left: clamp(16px, 4vw, 56px);
    z-index: 500;
    width: min(360px, calc(100% - 32px));
    max-height: calc(100% - clamp(40px, 8vw, 88px));
    overflow-y: auto;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    backdrop-filter: blur(6px);
}

.gh-map__overlay-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gh-line);
    color: var(--gh-ink);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
}

.gh-map__overlay-head .material-symbols-outlined {
    color: var(--gh-blue);
    font-size: 20px;
}

.gh-map__locations {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-map__location {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gh-line);
    cursor: pointer;
    transition: background-color .2s ease;
}

.gh-map__location:last-child { border-bottom: 0; }

.gh-map__location:hover,
.gh-map__location.is-active {
    background: rgba(0, 88, 181, .06);
}

.gh-map__location-main h3 {
    margin: 0;
    color: var(--gh-ink);
    font-size: 16px;
    font-weight: 700;
}

.gh-map__location-main p {
    margin: 4px 0 0;
    color: var(--gh-muted);
    font-size: 13px;
    line-height: 1.5;
}

.gh-map__location-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 12px 0 0;
}

.gh-map__location-meta div {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.gh-map__location-meta dt {
    color: var(--gh-muted);
    font-weight: 600;
}

.gh-map__location-meta dd {
    margin: 0;
    color: var(--gh-ink);
}

.gh-map__location-meta a {
    color: var(--gh-blue);
    text-decoration: none;
}

.gh-map__location-meta a:hover { text-decoration: underline; }

.gh-map__location-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--gh-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.gh-map__location-link .material-symbols-outlined { font-size: 16px; }

.gh-map__location-link:hover { text-decoration: underline; }

/* Marker Leaflet personalizzato */
.gh-map .cedir-map-marker {
    background: transparent;
    border: 0;
}

.gh-map .cedir-map-marker span {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    background: var(--gh-blue);
    border: 4px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 12px 28px rgba(31, 31, 31, .24);
}

.gh-map .cedir-map-marker span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.gh-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.gh-map .leaflet-popup-content {
    margin: 12px 16px;
    color: var(--gh-ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
}

.gh-final {
    padding: clamp(76px, 9vw, 120px) 0;
    background:
        radial-gradient(900px 460px at 100% 0%, rgba(0, 88, 181, .14), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
    border-top: 1px solid rgba(196, 199, 199, .5);
}

.gh-final__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.gh-final__inner .eyebrow { color: var(--gh-blue); }

.gh-final__inner h2 {
    margin: 12px 0 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.gh-final__inner p {
    max-width: 640px;
    margin: 18px auto 0;
    color: var(--gh-muted);
    font-size: 17px;
    line-height: 1.65;
}

/* ===== Chi siamo ===== */
.gh-about {
    padding: clamp(76px, 9vw, 120px) 0;
    background: var(--gh-white);
}

.gh-about__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.gh-about__inner .eyebrow { color: var(--gh-blue); }

.gh-about__inner h2 {
    margin: 12px 0 0;
    color: var(--gh-ink);
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.gh-about__inner p {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--gh-muted);
    font-size: 17px;
    line-height: 1.65;
}

.gh-about__inner p strong {
    color: var(--gh-ink);
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gh-valori__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-aree__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-servizi__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rm-category-comfort {
        min-height: 560px;
    }

    .rm-category-comfort__image {
        inset: 0 45% 0 0;
    }

    .rm-category-comfort--reverse .rm-category-comfort__image {
        inset: 0 0 0 45%;
    }

    .rm-category-comfort__inner {
        width: 55%;
        min-height: 560px;
        padding: clamp(48px, 6vw, 72px);
    }

    .rm-category-comfort--reverse .rm-category-comfort__inner {
        padding-left: clamp(48px, 6vw, 72px);
    }

    .gh-update__band {
        grid-template-columns: 1fr;
    }

    .gh-update__band--reverse .gh-update__media { order: 0; }
    .gh-update__band--reverse .gh-update__copy { order: 0; }

    .gh-update__media {
        min-height: 280px;
    }

    .gh-newsletter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .gh-map__canvas {
        height: 420px;
    }

    .gh-map__overlay {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .gh-map__locations {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gh-panel__inner {
        padding: 0 24px;
    }

    .gh-panel__logo {
        max-height: 46px;
    }

    .gh-rete__grid {
        grid-template-columns: 1fr;
    }

    .gh-booking .search-shell {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .gh-booking .search-field {
        border-right: 0;
        border-bottom: 1px solid rgba(196, 199, 199, .65);
    }

    .gh-booking .search-location {
        border-bottom: 1px solid rgba(196, 199, 199, .65);
    }

    .gh-booking .search-submit {
        width: 100%;
        border-radius: 16px;
    }
}

@media (max-width: 560px) {
    .gh-hero--split {
        height: auto;
        min-height: 0;
    }

    .gh-hero__top {
        flex: none;
        min-height: 56vh;
    }

    .gh-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px var(--page-pad);
    }

    .gh-hero__title {
        font-size: clamp(32px, 10vw, 44px);
        overflow-wrap: break-word;
    }

    .gh-hero__lead {
        font-size: 17px;
    }

    .gh-panels {
        flex: none;
        flex-direction: column;
    }

    .gh-panel {
        flex: 1 1 auto;
        min-height: 34vh;
    }

    .gh-panel + .gh-panel {
        border-left: 0;
    }

    .gh-panel__inner {
        padding: 24px;
    }

    .gh-panel__logo {
        max-height: 50px;
    }

    .gh-valori__grid {
        grid-template-columns: 1fr;
    }

    .gh-booking__card {
        padding: 32px 20px;
        border-radius: 18px;
    }

    .gh-aree__grid {
        grid-template-columns: 1fr;
    }

    .gh-servizi__grid {
        grid-template-columns: 1fr;
    }

    .rm-category-comfort h2 {
        font-size: clamp(32px, 9vw, 44px);
    }

    .rm-category-comfort p {
        font-size: 16px;
    }

    .gh-update__media {
        min-height: 200px;
    }

    .gh-newsletter {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .gh-newsletter__form {
        flex-direction: column;
    }
}

/* --- Hero: overlay per leggibilità e box con solo loghi (schermi stretti) --- */
@media (max-width: 1104px) {
    .gh-hero__top.is-light .gh-hero__shade {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .1) 42%, rgba(255, 255, 255, .2) 72%, rgba(255, 255, 255, .35) 100%),
            linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 45%, rgba(255, 255, 255, .6) 100%);
    }

    .gh-panel__title,
    .gh-panel__address,
    .gh-panel__contacts,
    .gh-panel__cta,
    .gh-panel__more {
        display: none;
    }

    .gh-panel__inner {
        justify-content: center;
        padding: 0 24px;
    }

    .gh-panel__logo {
        max-height: 44px;
    }
}

/* --- Box: disattivare l'espansione al passaggio del mouse --- */
@media (max-width: 1104px), (max-height: 1800px) {
    .gh-panel,
    .gh-panel:hover {
        flex-grow: 1;
    }

    .gh-panel:hover .gh-panel__bg {
        left: 0;
        width: 100%;
        transform: scale(1.05);
    }

    .gh-panel:hover .gh-panel__shade {
        opacity: 1;
    }

    .gh-panel:hover .gh-panel__inner {
        left: 0;
        width: 100%;
        align-items: center;
        justify-content: flex-end;
        text-align: center;
        gap: 12px;
        padding: 0 24px 44px;
        background: transparent;
    }

    .gh-panel:hover .gh-panel__logo {
        transform: none;
        filter: brightness(0) invert(1);
    }

    .gh-panel:hover .gh-panel__title {
        color: var(--gh-white);
    }

    .gh-panel:hover .gh-panel__address {
        color: rgba(255, 255, 255, .8);
    }

    .gh-panel:hover .gh-panel__contact {
        color: var(--gh-white);
    }

    .gh-panel:hover .gh-panel__contact:hover {
        color: var(--gh-panel);
    }
}

/* --- Sezioni RM e TC: comportamento mobile come Magliaro --- */
@media (max-width: 820px) {
    .rm-category-comfort {
        min-height: auto;
        background: var(--panel-blue);
    }

    .rm-category-comfort__image {
        display: block;
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 260px;
        background: url("/img/widebore.png") center center / cover no-repeat;
    }

    .rm-category-comfort--reverse .rm-category-comfort__image {
        inset: auto;
    }

    .rm-category-comfort__inner,
    .rm-category-comfort--reverse .rm-category-comfort__inner {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        margin: 0;
        align-items: flex-start;
        padding: 56px 22px 72px;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gh-center,
    .gh-center__link .material-symbols-outlined,
    .gh-area,
    .gh-service,
    .gh-service__link .material-symbols-outlined,
    .gh-panel,
    .gh-panel__bg,
    .gh-panel__shade,
    .gh-panel__inner,
    .gh-panel__logo,
    .gh-panel__title,
    .gh-panel__address,
    .gh-panel__more,
    .gh-panel__contacts,
    .gh-panel__contact,
    .gh-panel__cta,
    .gh-hero__video,
    .gh-hero__image { transition: none; }
}

/* Footer: brand + una colonna per ogni sede */
.site-footer__centers li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__centers span {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .72);
}

.site-footer__centers a {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
    transition: color .25s ease;
}

.site-footer__centers a:hover {
    color: var(--gh-white);
}

/* Match the compact desktop scale while keeping hero + center panels
   exactly one viewport tall. Give the extra space to the upper hero. */
@media screen and (min-width: 1100px) and (max-width: 1440px) and (hover: hover) and (pointer: fine) {
    .gh-hero--split {
        height: calc(100vh / 0.85);
    }

    .gh-hero__top {
        flex: 1 1 0;
    }

    .gh-panels {
        flex: 0 0 30vh;
    }
}
/* Compact cards: aligned identity, with actions fading into the same space.
   Absolute action placement avoids any layout shift on hover or keyboard focus. */
@media screen and (min-width: 1100px) and (max-width: 1440px) and (hover: hover) and (pointer: fine) {
    .gh-panel__inner,
    .gh-panel:hover .gh-panel__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 38px 44px 28px;
        align-content: center;
        align-items: center;
        justify-items: center;
        gap: 6px;
        padding: 18px 28px;
        text-align: center;
    }

    .gh-panel__logo,
    .gh-panel:hover .gh-panel__logo {
        grid-row: 1;
        max-height: 34px;
        max-width: 58%;
    }

    .gh-panel__title {
        display: block;
        grid-row: 2;
        max-width: 32ch;
        white-space: normal;
        text-wrap: balance;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: .01em;
    }

    .gh-panel__address {
        display: block;
        grid-row: 3;
        max-width: 100%;
        font-size: 11px;
        line-height: 1.5;
        color: rgba(255, 255, 255, .7);
    }

    .gh-panel__logo,
    .gh-panel__title,
    .gh-panel__address {
        transition: opacity .25s ease;
    }

    .gh-panel:is(:hover, :focus-within) .gh-panel__logo,
    .gh-panel:is(:hover, :focus-within) .gh-panel__title,
    .gh-panel:is(:hover, :focus-within) .gh-panel__address {
        opacity: 0;
    }

    .gh-panel__contacts,
    .gh-panel:hover .gh-panel__contacts {
        position: absolute;
        inset: 30% 20px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 0;
        transform: none;
    }

    .gh-panel__cta,
    .gh-panel:hover .gh-panel__cta {
        position: absolute;
        top: 65%;
        left: 50%;
        display: inline-flex;
        margin: 0;
        padding: 9px 22px;
        transform: translateX(-50%);
        white-space: nowrap;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, .6);
    }

    .gh-panel__contacts,
    .gh-panel__cta {
        transition: opacity .25s ease, visibility .25s ease;
    }

    .gh-panel:is(:hover, :focus-within) .gh-panel__contacts,
    .gh-panel:is(:hover, :focus-within) .gh-panel__cta {
        opacity: 1;
        visibility: visible;
    }

    .gh-panel__more {
        display: inline-flex;
    }

    .gh-panel__cta:hover {
        background: rgba(255, 255, 255, .15);
    }
}