.home-revision {
    --page-width: 1280px;
    --gutter: max(clamp(18px, 4vw, 64px), calc((100vw - var(--page-width)) / 2));
    --rule: 1px solid var(--line);
    background: white;
}
.home-revision .site-header { z-index: 30; }
.home-revision .topbar { font-size: .82rem; padding: 6px var(--gutter); }
.home-revision .mainnav { width: 100%; max-width: none; padding: 10px var(--gutter); }
.home-revision .brand { width: auto; gap: 12px; }
.home-revision .brand strong { font-size: clamp(1.25rem,2.2vw,2.1rem); line-height: 1.08; }
.home-revision .brand small { font-size: .8rem; }
.home-revision .brand-mark { width: 58px; height: 58px; flex-shrink: 0; }
.home-revision .primary-menus { padding: 4px; border-radius: 32px; background: var(--blue-50); }
.home-revision .primary-menus summary { border: 0; border-radius: 25px; }
.rev-menu { display: none; }
.home-revision .site-main-content > section.band {
    background: white; padding: clamp(40px, 5vw, 78px) var(--gutter);
}
.home-revision .site-main-content > .hero.hero-cinematic {
    align-content: center; height: clamp(455px, 66svh, 690px); min-height: 0; padding: 0 var(--gutter);
    border-radius: 0 0 clamp(38px, 6vw, 90px) 0;
}
.home-revision .hero-shade { background: linear-gradient(90deg,rgba(4,31,51,.91),rgba(4,31,51,.65) 40%,rgba(4,31,51,.13) 82%); }
.home-revision .hero-copy { padding: 28px 0; margin: 0; max-width: 720px; }
.home-revision .hero-copy .eyebrow { color: var(--blue-100); font-size: .85rem; letter-spacing: .12em; margin: 0 0 18px; }
.home-revision .hero-copy h1 { margin: 0; font-size: clamp(3.4rem, 6.7vw, 6.6rem); line-height: .94; letter-spacing: -.065em; }
.home-revision .hero-copy > p:not(.eyebrow) { max-width: 460px; white-space: normal; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.45; margin: 20px 0; }
.rev-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rev-hero-actions a { display: inline-flex; align-items: center; gap: 20px; padding: 10px 17px; border: 1px solid white; border-radius: 24px; color: white; font-size: .94rem; font-weight: 700; text-decoration: none; }
.rev-hero-actions [data-hero-status]:empty { display: none; }
.rev-hero-actions [data-hero-play]:not([hidden]), .rev-hero-actions a:first-child { background: white; color: var(--brand-dark); }
.rev-hero-actions a:hover { background: var(--blue-100); color: var(--brand-dark); }
.rev-play { position: absolute; right: var(--gutter); bottom: 24px; color: white; background: #062f49b3; border: 1px solid #ffffffb0; }
.rev-play, .rev-rail-controls button, .rev-dialog button { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.home-revision .site-main-content > #azioni,
.home-revision .site-main-content > section:is(.home-promises, .home-quality, .home-focus-band, .google-reviews-band) { padding-bottom: 0; }
.home-revision .site-main-content > section.home-promises,
.home-revision .site-main-content > section.home-quality,
.home-revision .site-main-content > .home-quality + section.home-focus-band,
.home-revision .site-main-content > .home-focus-band + section.band,
.home-revision .site-main-content > .google-reviews-band + section.location-band { padding-top: clamp(20px, 2vw, 32px); }
.home-revision .home-trust-grid { gap: 18px; }
.home-quality .home-info-card img.home-quality-photo { width: auto; max-width: 100%; height: 84px; object-fit: contain; align-self: flex-start; }
.home-revision .home-info-card { border: var(--rule); background: white; box-shadow: none; border-radius: 12px 36px 12px 12px; padding: 24px; }
.home-revision .home-info-card::before { display: none; }
.home-revision .home-info-card::after { content: "↗"; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--blue-50); color: var(--brand-dark); }
.home-revision .home-promises .home-info-card { position: relative; display: grid; grid-template-columns: 1fr 96px; grid-template-rows: auto 1fr auto; min-height: 190px; gap: 8px 10px; }
.home-revision .home-promises .home-info-card h2 { grid-column: 1; align-self: end; }
.home-revision .home-promises .home-info-card h2,
#azioni #titolo-accesso,
#azioni #attesa-title,
#azioni .rev-action-copy > strong {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 2.7vw, 2.55rem);
    font-weight: 700;
    line-height: var(--font-body-line);
    letter-spacing: -.055em;
    color: var(--brand-dark);
}
#azioni .rev-action-copy > strong { padding-right: 0; }
@media (max-width: 640px) {
    #azioni .rev-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
}
.rev-promise-photo { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 100%; height: 108px; object-fit: contain; }
.home-revision .home-promises .home-info-card p { grid-column: 1; font-size: .95rem; line-height: 1.45; }
.home-revision :is(#azioni, #percorsi, .home-promises, .home-quality) .section-head :is(p, .legacy-content) { max-width: none; }
.home-revision .section-head { margin: 0 0 25px; }
.home-revision .section-head h2 { color: var(--brand-dark); font-size: clamp(2.1rem, 4vw, 4.25rem); font-weight: 650; line-height: 1.05; letter-spacing: -.055em; margin: 0; }
.home-revision .section-head .eyebrow, .rev-tech { color: var(--brand); text-transform: uppercase; font-size: .78rem; font-weight: 750; letter-spacing: .13em; margin: 0 0 10px; }
.home-revision .section-head > p:last-child:not(.eyebrow) { color: var(--muted); max-width: 65ch; font-size: 1rem; }
.home-revision #azioni, .home-revision #percorsi { scroll-margin-top: 115px; }
.rev-actions { --rule: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; align-items: stretch; grid-auto-rows: 1fr; }
.rev-action, .rev-action summary { position: relative; display: flex; flex-direction: column; color: var(--ink); cursor: pointer; text-decoration: none; }
.rev-action { border: var(--rule); border-radius: 14px 38px 14px 14px; background: white; transition: border-color .2s, box-shadow .25s; }
.rev-action summary { list-style: none; }
.rev-action summary::-webkit-details-marker { display: none; }
.rev-action:hover, .rev-action[open], .home-revision .home-info-card:hover { border-color: var(--blue-300); box-shadow: 0 8px 25px rgba(6,79,120,.10); }
.rev-action img, .rev-info-image { margin: 12px 10% 2px; width: 80%; height: clamp(100px, 10vw, 150px); object-fit: contain; transition: transform .32s; }
.rev-action:hover img { transform: scale(1.04); }
.rev-action-copy { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; min-height: 113px; border-top: 1px solid var(--blue-50); }
.rev-action-copy strong { color: var(--brand-dark); font-size: clamp(1.25rem,2vw,1.65rem); letter-spacing: -.045em; padding-right: 38px; }
.rev-action-copy > span, .rev-choices small { color: var(--muted); font-size: .94rem; line-height: 1.4; }
.rev-round { display: grid; place-items: center; position: absolute; top: 15px; right: 15px; border-radius: 50%; width: 32px; height: 32px; background: var(--blue-50); color: var(--brand-dark); font-size: 1.25rem; }
.rev-action[open] .rev-round { transform: rotate(45deg); }
.rev-choices { border-top: var(--rule); padding: 0 18px 6px; }
.rev-choices a { display: block; padding: 10px 0; color: var(--brand-dark); font-weight: 700; }
.rev-choices small { display: block; font-weight: normal; }
.rev-contact-location { display: grid; gap: .35rem; padding-block: .8rem; }
.rev-contact-location + .rev-contact-location { border-top: var(--rule); }
.rev-contact-location a {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .45rem .65rem;
    border: 1px solid currentColor;
    border-radius: .6rem;
    text-decoration: none;
    line-height: 1.2;
}
.rev-contact-location a:hover { text-decoration: underline; }
.rev-contact-location svg { width: 1.25rem; height: 1.25rem; flex: none; }
.rev-contact-location .rev-contact-chat { color: #075c42; background: #effaf4; }
.rev-contact-location .rev-contact-phone { color: var(--brand-dark); background: var(--blue-50); }
.home-revision .site-main-content > .rev-lab { background: var(--blue-50); }
.rev-showcase { overflow: hidden; background: white; border: var(--rule); border-radius: 18px 52px 18px 18px; }
/* The three visible photos share a stage. The captions stay outside the animation. */
.rev-action-copy > strong { font-weight: 700; }
.rev-action-copy > span { font-weight: 400; }
.home-revision .home-focus-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.rev-carousel-stage { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.rev-preview { position: relative; display: grid; place-items: center; min-width: 0; padding: 15px; color: var(--brand-dark); background: white; border: 0; }
.rev-preview img { display: block; max-width: 98%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rev-gallery-dots, .rev-gallery-arrow, .rev-zoom-mark { display: none; }
.rev-showcase.is-ready .rev-carousel-stage { position: relative; display: block; height: clamp(210px,30vw,415px); overflow: hidden; touch-action: pan-y; isolation: isolate; }
.is-ready .rev-preview { position: absolute; top: 5%; left: 50%; width: 48%; height: 88%; opacity: 0; visibility: hidden; transform: translateX(-50%) scale(.56); transition: transform .48s ease, opacity .35s ease; }
.is-ready .rev-preview[data-slot] { visibility: visible; opacity: 1; }
.is-ready .rev-preview[data-slot="center"] { transform: translateX(-50%); z-index: 2; }
.is-ready button.rev-preview[data-slot="center"] { cursor: zoom-in; }
.is-ready .rev-preview[data-slot="left"] { transform: translateX(-126%) scale(.57); cursor: pointer; }
.is-ready .rev-preview[data-slot="right"] { transform: translateX(26%) scale(.57); cursor: pointer; }
.rev-preview-name { font-weight: 700; font-size: clamp(.9rem,1.6vw,1.25rem); }
.is-ready .rev-preview-name { position: absolute; bottom: -12%; width: 100%; text-align: center; }
.is-ready [data-slot="center"] .rev-preview-name { display: none; }
.is-ready [data-slot="center"] .rev-zoom-mark { position: absolute; display: grid; place-items: center; right: 2%; bottom: 0; border: var(--rule); border-radius: 50%; width: 36px; height: 36px; color: var(--brand-dark); background: white; font-size: 1.4rem; }
.rev-arm { clip-path: polygon(8.2% 0,90.8% 0,90.3% 15%,89.3% 22%,87.6% 30%,86.8% 39%,87.1% 49%,89% 62%,92.2% 74%,96.8% 89%,99% 100%,0% 100%,.9% 87%,3.2% 71%,5.1% 56%,7.1% 42%,9% 26%,9.9% 15%); }
.is-ready .rev-gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 4px 12px 16px; }
.rev-gallery-dots button { width: 27px; height: 32px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.rev-gallery-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 10px; background: var(--blue-300); transition: width .25s; }
.rev-gallery-dots button[aria-current="true"]::after { width: 21px; background: var(--brand-dark); }
.rev-gallery-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-top: var(--rule); padding: 22px clamp(12px,4vw,48px) 30px; }
.is-ready .rev-gallery-arrow { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--blue-300); cursor: pointer; color: var(--brand-dark); background: white; font-size: 1.3rem; }
.rev-gallery-arrow:hover { background: var(--blue-50); }
.rev-captions { flex: 1; min-width: 0; text-align: center; }
.rev-instrument-copy h3 { font-size: clamp(1.65rem,3.4vw,3.2rem); letter-spacing: -.055em; line-height: 1.07; margin: 0; color: var(--brand-dark); }
.rev-instrument-copy > p:not(.rev-tech) { max-width: 62ch; margin: 12px auto; line-height: 1.5; }
.rev-instrument-copy small { font-size: .84rem; }
.rev-dialog img.rev-arm { display: block; width: auto; height: auto; max-width: 100%; max-height: 63svh; margin: auto; }
.rev-rail-controls { display: flex; gap: 8px; }
.rev-rail-controls button, .rev-dialog button { color: var(--brand-dark); background: white; border: 1px solid var(--blue-300); }
.rev-rail-controls button:hover:enabled, .rev-dialog button:hover { background: var(--blue-50); }
.rev-rail-controls button:disabled { opacity: .35; cursor: default; }
.rev-dialog { width: min(900px, 92vw); max-width: 92vw; margin: auto; padding: 22px; border: var(--rule); border-radius: 22px; color: var(--brand-dark); background: white; }
.rev-dialog::backdrop { background: rgba(4,31,51,.79); }
.rev-dialog > div { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.rev-dialog h3 { margin: 0; }
.rev-dialog img { width: 100%; height: min(63svh,650px); object-fit: contain; }
.home-revision .site-main-content > .home-focus-band { background: var(--blue-50); }
.rev-path-link { display: inline-flex; align-items: center; gap: 12px; padding: 9px 17px; border-radius: 24px; background: var(--brand-dark); color: white; font-weight: 700; text-decoration: none; }
.rev-path-link:hover { background: var(--brand); color: white; }
.home-revision .home-focus-band > .rev-rail-controls { justify-content: flex-end; margin: 0 0 12px; }
.home-revision .home-focus-grid { gap: 18px; padding: 2px 2px 16px; scrollbar-color: var(--blue-300) var(--gray-100); }
.home-revision .home-focus-card { flex: 0 0 calc((100% - 50px) / 3); scroll-snap-align: start; min-width: 0; }
.rev-focus-photo { width: 100%; height: clamp(140px,15vw,210px); object-fit: contain; }
.home-revision .home-focus-card h3 { color: var(--brand-dark); letter-spacing: -.045em; font-size: 1.6rem; }
.home-revision .home-focus-card p { font-size: 1rem; }
.home-revision :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 980px) {
    .home-revision .mainnav { display: grid; position: relative; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
    .home-revision .rev-menu { display: flex; gap: 12px; align-items: center; padding: 9px 15px; border: var(--rule); border-radius: 24px; background: white; color: var(--brand-dark); font-weight: 700; }
    .home-revision.has-rev-js .primary-menus:not(.rev-open) { display: none; }
    .home-revision .primary-menus { border-radius: 12px; }
    .rev-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-revision .home-promises .home-info-card { grid-template-columns: 1fr; }
    .rev-promise-photo { grid-column: 1; grid-row: 1; width: 100%; height: 84px; }
    .home-revision .home-focus-card { flex-basis: 45%; }
}
@media (max-width: 680px) {
    .home-revision .topbar { justify-content: space-between; gap: 5px; font-size: .68rem; }
    .home-revision .topbar span::before { display: none; }
    .home-revision .brand-mark { width: 42px; height: 42px; }
    .home-revision .site-main-content > .hero.hero-cinematic { height: 470px; }
    .home-revision .hero-copy { padding-bottom: 50px; }
    .rev-hero-actions { gap: 7px; }
    .rev-hero-actions a { font-size: .83rem; padding: 9px 12px; gap: 8px; }
    .home-revision .home-trust-grid { grid-template-columns: 1fr; gap: 10px; }
    .home-revision .home-promises .home-info-card { grid-template-columns: 1fr 82px; grid-template-rows: auto auto; min-height: 0; padding: 19px; }
    .rev-promise-photo { grid-column: 2; grid-row: 1 / 3; align-self: center; height: 90px; }
    .home-revision .home-promises .home-info-card::after { display: none; }
    .rev-actions { gap: 10px; }
    .rev-action { border-radius: 10px 23px 10px 10px; }
    .rev-action img, .rev-info-image { margin-top: 22px; height: 95px; }
    .rev-round { top: 7px; right: 7px; width: 26px; height: 26px; }
    .rev-action-copy { padding: 11px; min-height: 125px; }
    .rev-action-copy strong { font-size: 1.22rem; padding: 0; }
    .rev-action-copy > span { font-size: .85rem; }
    .rev-gallery-summary { padding: 18px 10px; gap: 5px; }
    .is-ready .rev-gallery-arrow { flex-basis: 34px; height: 34px; }
    .is-ready .rev-preview { padding: 8px; }
    .is-ready .rev-preview-name { bottom: -4%; }
    .is-ready .rev-gallery-dots { padding-bottom: 6px; }
    .rev-gallery-dots button { width: 24px; }
    .home-revision .home-focus-card { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) {
    .home-revision *, .home-revision *::before, .home-revision *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.home-revision .site-main-content :is(.page-hero, .catalog-hero) {
    border-radius: 0 0 clamp(28px, 5vw, 68px) 0;
}
.home-revision .site-main-content > section:is(.page-hero.compact, .catalog-hero) {
    min-height: 0;
    padding-block: clamp(14px, 1.5vw, 24px);
}
.home-revision .site-main-content > section.content-page-model {
    padding-top: clamp(14px, 1.5vw, 24px);
}
.home-revision .site-main-content .page-hero.compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}
.home-revision .content-page-model > .content-page-hero {
    padding-block: 0 clamp(14px, 1.5vw, 24px);
}
.home-revision .site-main-content .page-hero.compact > :is(h1, p, .editable-page-intro) {
    width: 100%;
    max-width: none;
    margin: 0;
}
.home-revision .site-main-content :is(.page-hero, .catalog-hero) .editable-page-intro,
.home-revision .site-main-content :is(.page-hero, .catalog-hero) p {
    max-width: none;
    overflow-wrap: anywhere;
}
.home-revision .catalog-hero .catalog-hero-copy { max-width: none; }
.home-revision .catalog-hero .catalog-hero-copy :is(h1, .eyebrow) { margin-block: 0 8px; }
.home-revision .catalog-hero .page-title-with-icon p { margin-block: 0; }
.home-revision .site-main-content > section:is(.page-hero, .catalog-hero) + :is(section, .contact-locations) {
    padding-top: clamp(14px, 1.5vw, 24px);
}
.home-revision :is(.page-hero, .catalog-hero) h1 {
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.home-revision :is(.cards, .detail-grid, .theme-index) .card {
    border: var(--rule);
    border-radius: 14px 36px 14px 14px;
    box-shadow: none;
}
.rev-actions.rev-actions-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    overflow-wrap: anywhere;
}
.rev-actions-sidebar .rev-action-copy strong { padding-right: 0; }
.home-revision .site-main-content .btn { border-radius: 999px; }
.home-revision #orari-prelievi { scroll-margin-top: 9rem; }
.home-revision .topbar a:hover { text-decoration: underline; }
.home-revision .topbar a:focus-visible { outline-color: white; }

.contact-locations {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(18px,4vw,48px);
    font-size: clamp(1.25rem, 1.15rem + .35vw, 1.375rem);
    line-height: 1.5;
}
.contact-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: clamp(32px,4vw,56px); }
.contact-location { min-width: 0; }
.contact-location h2 { color: var(--brand-dark); font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.05em; margin: 0 0 18px; }
.contact-location h2 small { font-size: clamp(1.25rem, .55em, 1.875rem); letter-spacing: 0; color: var(--muted); }
.contact-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.contact-address, .contact-action { padding: .7em 1em; border-radius: 12px; }
.contact-address { border: 1px solid var(--line); }
.contact-address h3 { font-size: 1.125em; line-height: 1.25; margin: 0 0 .4rem; }
.contact-address address { font-style: normal; }
.contact-address > a { display: inline-block; margin-top: .35em; }
.contact-location .contact-action { display: flex; align-items: center; gap: .65em; color: white; font-weight: 700; text-decoration: none; }
.contact-action svg { flex: 0 0 1.2em; width: 1.2em; height: 1.2em; }
.contact-chat { background: #07664b; }
.contact-phone { background: var(--brand-dark); }
[data-phone-city][aria-disabled="true"] { opacity: .65; cursor: default; }
.phone-closed-note[hidden] { display: none; }
.contact-number { display: inline-block; white-space: nowrap; }
.contact-action:hover { filter: brightness(.9); }
.contact-map { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-50); margin-top: 10px; }
.contact-map-preview { display: grid; align-items: start; justify-items: end; text-decoration: none; }
.contact-map-preview > * { grid-area: 1 / 1; }
.contact-map-preview img { width: 100%; height: clamp(160px,17vw,235px); object-fit: cover; }
.contact-map-preview span, .contact-map-close { margin: 6px; border: 1px solid var(--line); background: white; color: var(--brand-dark); padding: 5px 10px; border-radius: 20px; font-size: .85rem; font-weight: 700; }
.contact-map-credit { position: absolute; bottom: 0; right: 0; color: #33434b; background: white; padding: 2px 5px; font-size: .7rem; }
.contact-map iframe { display: block; width: 100%; height: clamp(215px,22vw,300px); border: 0; }
.contact-map-close { cursor: pointer; }
.contact-map [hidden] { display: none; }
.contact-map:focus-within { outline: 3px solid var(--brand); }
.contact-hours { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .65rem 1rem; margin: 1.5rem 0 0; }
.contact-hours dt { font-weight: 700; }
.contact-hours > :is(dt, dd):first-of-type { grid-column: 1 / -1; }
.contact-hours dd { margin: 0; overflow-wrap: anywhere; }
.contact-holidays { margin-top: clamp(28px,4vw,50px); padding: clamp(18px,3vw,32px); border-radius: 14px 36px 14px 14px; background: var(--blue-50); }
.contact-holidays h2 { margin: 0; color: var(--brand-dark); }
.contact-holidays p { margin: .6rem 0 0; }
@media (max-width: 30rem) {
    .contact-hours { grid-template-columns: 1fr; row-gap: .125rem; }
    .contact-hours dd + dt { margin-top: .65rem; }
}

.institution-identity {
    display: flex;
    align-items: center;
    gap: clamp(.65rem, 1.4vw, 1.25rem);
    min-width: 0;
}
.home-revision .institution-identity .brand { min-width: 0; width: auto; }
.home-revision .institution-identity .brand-mark { width: 4.25rem; height: 4.25rem; }
.imq-cert-link { display: inline-flex; flex: none; }
.imq-cert-link .imq-sgq > span, .imq-cert-link:not(:has(img)) { display: none; }
.imq-sgq {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    max-width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.35;
}
.imq-sgq > span { max-width: 15rem; }
.imq-sgq small { display: block; font-size: .85rem; font-weight: 400; }
.public-site .imq-sgq > img {
    display: block;
    flex: none;
    height: 5.5rem;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}
.imq-sgq-details { margin-bottom: 1.5rem; }
.imq-document-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
    max-width: 46rem;
}
.legacy-content .imq-document-previews a {
    display: grid;
    align-content: start;
    margin: 0;
}
.imq-document-previews a > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.imq-document-previews a > span { text-decoration: underline; }
.institution-identity .imq-cert-link .imq-sgq > img { height: 4.75rem; }
@media (max-width: 28rem) {
    .home-revision .institution-identity { grid-column: 1 / -1; }
    .home-revision .mainnav .rev-menu { grid-column: 2; }
    .home-revision .institution-identity .brand-mark { width: 2.75rem; height: 2.75rem; }
}
@media print {
    .imq-sgq, .imq-cert-link { display: none !important; }
}

.public-site.home-revision .mainnav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: clamp(8px, 1vw, 18px);
}
.personal-nav-link {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    white-space: nowrap;
}
@media (max-width: 28rem) {
    .public-site.home-revision .mainnav { grid-template-columns: 1fr auto; }
    .home-revision .mainnav .rev-menu { grid-column: 1; grid-row: 2; justify-self: start; }
    .personal-nav-link { grid-column: 2; grid-row: 2; }
}

.personal-exam-actions { width: 100%; margin-block: 1rem; }
.personal-exam-actions .rev-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 680px) {
    .personal-exam-actions .rev-actions { grid-template-columns: 1fr; }
    .personal-exam-actions .rev-action { display: grid; grid-template-columns: 28% minmax(0, 1fr); align-items: center; }
    .personal-exam-actions .rev-action img { height: 80px; margin-block: .5rem; }
    .personal-exam-actions .rev-action-copy { min-height: 0; padding-right: 2.8rem; }
}
.personal-exam-list { display: grid; gap: .45rem; list-style: none; padding: 0; }
.personal-exam-list > li { min-width: 0; }
.personal-exam-list .catalog-result-card { padding: .55rem .85rem; gap: .3rem 1rem; align-items: start; }
.personal-exam-list .catalog-result-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; min-width: 0; }
.personal-exam-list .catalog-result-main h2 { margin: 0; font-size: 1.05rem; }
.personal-exam-list .exam-tree { margin: 0; }
.personal-exam-list .exam-tree[open] { flex-basis: 100%; }
.personal-exam-list .catalog-meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .15rem 0 0; }
.personal-exam-list .catalog-meta div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; padding: .15rem .4rem; }
.personal-exam-list .catalog-meta dd { margin: 0; }
.personal-exam-list .catalog-result-side { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.personal-exam-list .catalog-result-side .btn { padding: .25rem .65rem; min-height: 2rem; }

.transparency-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    padding-block: clamp(24px, 3vw, 48px);
}
.transparency-page .section-head,
.home-revision .transparency-page .section-head > p:not(.eyebrow):last-child,
.transparency-page .section-head > p { width: 100%; max-width: none; }
.transparency-page .section-head h1 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.1;
}
.transparency-page .cards.three {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.transparency-page .card, .transparency-page .detail-block { min-width: 0; overflow-wrap: break-word; }
.transparency-public-documents .card { display: flex; flex-direction: column; align-items: flex-start; }
.transparency-public-documents .btn { margin-top: auto; }

.home-revision .site-main-content :is(.page-hero.compact, .section-head).menu-photo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(155px, 30%);
    align-items: center;
    gap: clamp(14px, 3vw, 36px);
}
.menu-photo-copy { min-width: 0; }
.menu-photo-copy > :first-child { margin-top: 0; }
.menu-photo-copy > :last-child { margin-bottom: 0; }
.home-revision .menu-photo-intro > .menu-intro-image {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    justify-self: end;
    margin: 0;
}
@media (max-width: 620px) {
    .home-revision .site-main-content :is(.page-hero.compact, .section-head).menu-photo-intro {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-revision .menu-photo-intro > .menu-intro-image {
        max-width: none;
        max-height: 210px;
    }
}

@media (min-width: 901px) {
    .site-main-with-actions {
        grid-template-columns: minmax(0, 2.25fr) minmax(340px, .75fr);
        gap: clamp(20px, 3vw, 56px);
    }
}
.site-main-with-actions > .site-main-content { min-width: 0; }
.site-main-with-actions .site-action-sidebar {
    position: static;
    min-width: 0;
    padding-top: clamp(14px, 1.5vw, 24px);
}
.site-action-sidebar > :is(.service-rail-photo, .menu-intro-image) {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}
.site-action-sidebar .rev-actions.rev-actions-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
    .site-main-with-actions > .site-action-sidebar { display: contents; }
    .site-action-sidebar > :is(.service-rail-photo, .menu-intro-image) {
        grid-row: 1;
        max-height: 260px;
        margin-top: 14px;
    }
    .site-action-sidebar-inner { margin-bottom: 32px; }
}

/* Scala comune per il testo di lettura nelle pagine pubbliche. */
.public-site { --reading-size: 1.25rem; }
.public-site #main :is(p:not(.eyebrow, .card-kicker, .rev-tech), dd, address, figcaption, blockquote,
    .rev-action-copy > span, .legacy-content li, .content-page-body li, .rev-choices small),
.public-site footer :is(p, address),
.public-site .mega-menu a > span {
    font-family: var(--font-sans);
    font-size: var(--reading-size);
    line-height: 1.55;
}
.public-site #main :is(p, li, dd) > a:not(.btn) { font-size: inherit; }

.rev-actions > .rev-action { min-width: 0; align-self: stretch; }
.rev-action-copy { overflow-wrap: anywhere; }
.rev-info-image { display: grid; place-items: center; }
.rev-info-image b { display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; color: white; background: var(--brand-dark); font: bold italic 3rem Georgia, serif; }
.faq-list details { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font: 700 var(--reading-size)/1.55 var(--font-sans); }
.faq-list summary strong { font: inherit; }
.faq-list p a { font-family: inherit; }
.faq-list summary:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }

/* Sui telefoni il contenuto precede sempre i servizi e ogni gruppo di schede usa una colonna. */
@media screen and (max-width: 900px) {
    #main.site-main-with-actions { display: block; }
    #main > .site-action-sidebar { display: block; position: static; width: 100%; }
    #main .site-action-sidebar-inner { position: static; }
    #main :is(.cards, .rev-actions, .home-trust-grid, .home-focus-grid, .ticket-wait-sites,
        .contact-columns, .contact-stack, .contact-hours, .home-contact-menu, .fast-grid,
        .content-page-columns, .content-page-materials, .detail-grid, .theme-detail, .split,
        .form-row, .builder, .ticket-form-column, .screening-builder, .screening-exams,
        .screening-price-breakdown, .menu-photo-intro, .transparency-intro, .legal-data,
        .document-grid, .preparation-guide-grid, .anatomy-layout, .anatomy-index,
        .catalog-hero, .catalog-hero-facts, .catalog-result-card, .catalog-meta,
        .atlas-columns, .atlas-key, .catalog-numbers, .filters, .clinical-search,
        .prescription-final-grid, .prescription-review-grid, .prescription-result,
        .prescription-preparation-grid, .prescription-quote-hero, .quote-line-list li,
        .manual-test-row, .google-reviews-shell, .google-review-grid, .legacy-gallery,
        .visual-story, .image-mosaic, .clanis-instruments, .clanis-veinfinder,
        .home-info-card, .rev-carousel-stage), .public-site .site-footer {
        grid-template-columns: minmax(0, 1fr);
    }
    #main #riepilogo-catalogo .catalog-numbers,
    #main #azioni .rev-actions { grid-template-columns: minmax(0, 1fr); }
    #main .home-promises .home-info-card { grid-template-rows: auto; }
    #main .home-promises .rev-promise-photo { grid-area: auto; justify-self: start; width: auto; max-width: 100%; }
    #main .rev-action-copy { min-height: 0; }
    #main .menu-intro-image { justify-self: start; }
    #main .home-focus-grid { flex-direction: column; }
    #main .home-focus-card { flex-basis: auto; }
    #main .is-ready .rev-preview[data-slot="center"] { width: 90%; }
    #main .is-ready .rev-preview:is([data-slot="left"], [data-slot="right"]) { visibility: hidden; }
}
