#top.afr-selection-contrast::selection,#top.afr-selection-contrast *::selection{background:#ffc900;color:#0b1719;text-shadow:none}
#top.afr-selection-contrast::-moz-selection,#top.afr-selection-contrast *::-moz-selection{background:#ffc900;color:#0b1719;text-shadow:none}
#top.afr-mobile-contacts a[data-afr-contact-href]:not([href]){cursor:text!important;text-decoration:none!important}

/* Home section headings: no underline, explicitly requested 29 October 2026. */
@layer afr_interaction_contract {
#top.home :is([class*="av-prodotti-title-"],[class*="av-progetti-title-"],[class*="av-home-facebook-title-"],.afr-story) h2 a[href]:not(.afr-home-heading-more){text-decoration:none!important;}
}

#top.home h2 a.afr-home-heading-more{display:inline-block;margin-left:10px;font:400 12px/1.4 Arial,sans-serif;letter-spacing:0;text-transform:none;vertical-align:middle;color:inherit;opacity:.7;white-space:nowrap;}
@layer afr_interaction_contract {#top.home h2 a.afr-home-heading-more{text-decoration-line:underline!important;text-decoration-thickness:1px!important;text-underline-offset:2px!important;font-weight:400!important;}}

#top.home :is([class*="av-prodotti-title-"],[class*="av-progetti-title-"],[class*="av-home-facebook-title-"] ,.afr-story) h2>a:not(.afr-home-heading-more):is(:hover,:focus-visible){color:#ffc900!important;}

#top.home [class*="av-progetti-title-"] h2>a:not(.afr-home-heading-more):is(:hover,:focus-visible){color:#777777!important;}

/* Home text links: section palette, with existing button/timeline states retained. */
#top.home #main :is(#rabotti-prodotti,#rabotti-storia,#rabotti-home-social) :is(.av-heading-link,.afr-home-heading-more):is(:hover,:focus-visible),
#top.home #main #rabotti-prodotti .afr-product-explore a:is(:hover,:focus-visible),
#top.home #main #rabotti-prodotti .afr-product-category:is(:hover,:focus-within,.is-active) h3 a{color:#ffc900!important;}
#top.home #main :is(#rabotti-intro,#rabotti-progetti) :is(.av-heading-link,.afr-home-heading-more):is(:hover,:focus-visible){color:#777777!important;}

/* Requested Rabotti yellow for the two linked Home titles, including the hover contract layer. */
@layer afr_interaction_contract {
#top.home #main :is([class*="av-prodotti-title-"],[class*="av-home-facebook-title-"]) h2>a.av-heading-link:is(:hover,:focus-visible){color:#ffc900!important;text-decoration:none!important}
}

/* Full text/CTA colours: shared policy, without modifying image or animation fades. */
#top.afr-solid-text-hover :is(
.av-special-heading.av-linked-heading a[href],
.avia_textblock a[href]:not(:has(img,picture,svg,video,canvas)),
a.avia-button,
#header :is(.main_menu,.sub_menu) a[href],
.av-burger-overlay li>a[href],
.widget_nav_menu a[href],
.mfp-title a[href],
#socket a[href]
):is(:hover,:focus-visible){opacity:1!important;}
#top.afr-solid-text-hover a.avia-button:is(:hover,:focus-visible) .avia_button_background{opacity:1!important;}
#top.afr-solid-text-hover .flex_column.avia-link-column.avia-link-column-hover:has(h1,h2,h3,h4,h5,h6,p,li):hover{opacity:1!important;}

#top.afr-solid-text-hover #header .av-menu-button>a:is(:hover,:focus-visible) .avia-menu-text{opacity:1!important;}

#top.afr-solid-text-hover #header .av-menu-button-colored:hover,
#top.afr-solid-text-hover .av-fold-button-container:has(a[href]):is(:hover,:focus-within){opacity:1!important;}

/* Unified reading size. Headings, navigation in the header and graphic figures keep their own scale. */
#top.afr-copy-unified{--afr-copy-size:var(--afr-copy-desktop,18px);}
@media(max-width:767.98px){#top.afr-copy-unified{--afr-copy-size:var(--afr-copy-mobile,17px);}}
#top.afr-copy-unified :is(#main,dialog,[role=dialog],.mfp-content) :where(p:not(.afr-story-date),li:not(:is(nav li,.av-subnav-menu li)),small,label,legend,figcaption,caption,dt,dd,address,time,td,th,textarea,select,input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit])){font-size:var(--afr-copy-size)!important;line-height:1.5!important;}
#top.afr-copy-unified :is(#main,dialog,[role=dialog],.mfp-content) :where(p:not(.afr-story-date)>a,p:not(.afr-story-date)>span,small>span,label>span,figcaption>span,td>a,td>span,th>span){font-size:inherit!important;line-height:inherit!important;}
#top.afr-copy-unified :is(#main,dialog,[role=dialog],.mfp-content) :where(.av-subheading,.avia-caption-content,.slide-meta,.post-meta-infos,.minor-meta,.av-magazine-time,.news-time,.news-excerpt,.afrpa-eyebrow,.afrpa-hint,.afrpa-step,.afr-story-eyebrow,.afr-story-position,.afr-story-chapter-index,.afr-prefooter,.copyright){font-size:var(--afr-copy-size)!important;line-height:1.5!important;}
#top.afr-copy-unified :is(#main,dialog,[role=dialog],.mfp-content) :where(button:not(.afrpa-close):not(.afr-product-close):not(.mfp-close):not(.afr-search-close):not(.afr-support-close),.avia-button,.avia-button .avia_iconbox_title,.afrpa-button,.afrpa-secondary,.afr-prefooter a,.afrpa-entry-recovery,.afrpa-teamviewer a>span:not(.image-overlay)){font-size:var(--afr-copy-size)!important;line-height:1.35!important;}
#top.afr-copy-unified :is(#footer-page,#socket) :where(.avia_textblock,.avia-promocontent,.copyright,.copyright a,.av-social-link-description){font-size:var(--afr-copy-size)!important;line-height:1.5!important;}
#top.afr-copy-unified .ti-widget :where(.ti-name,.ti-name a,.ti-date,.ti-review-text,.ti-read-more,.ti-read-more-active,.ti-rating-text,.ti-rating-text strong,.ti-rating-text a,.ti-rating-text span,.ti-small-logo){font-size:var(--afr-copy-size)!important;line-height:1.4!important;}
/* Text can wrap instead of being clipped by former compact-control heights. */
#top.afr-copy-unified :is(.avia-button,.afrpa-button,.afrpa-secondary){height:auto;min-height:46px;white-space:normal;}
#top.afr-copy-unified :is(.afrpa-step,.afrpa-check,.afr-story-eyebrow,.afr-story-position,.afr-story-chapter-index,.slide-meta,.post-meta-infos){height:auto;max-height:none;}
/* Short labels and utility text that are authored as spans or standalone links. */
#top.afr-copy-unified :is(.afr-product-index,.afr-instrument-label,.afr-instrument-label>span,.afr-instrument-baseline,.afr-instrument-baseline>span,.afr-story-nav-help,.afr-story-nav-help>span,.afr-stop-date,.afr-stop-title,.afr-story-speed-indicator,.afr-contact-map-enlarge,.afrpa-manage-link,.afrpa-folders a,.afrpa-current-space,.afrpa-document-meta,.afrpa-document-meta>span,.afrpa-file-type,.afrpa-area-footer,.afrpa-area-footer a){font-size:var(--afr-copy-size)!important;line-height:1.4!important;}
#top.afr-copy-unified .afr-product-index{width:2em;height:2em;min-width:2em;min-height:2em;display:flex;align-items:center;justify-content:center;}
#top.afr-copy-unified :is(.afr-instrument-label,.afr-instrument-baseline){flex-wrap:wrap;}
#top.afr-copy-unified .afr-story .afr-stop-title{white-space:normal;text-wrap:wrap;block-size:auto;min-block-size:2.8em;overflow-wrap:anywhere;}
#top.afr-copy-unified .afrpa-area-footer{height:auto;min-height:46px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;}
#top.afr-copy-unified .afr-home-heading-more{font-size:var(--afr-copy-size)!important;line-height:1.4!important;white-space:normal;}

#top.afr-copy-unified :is(.afr-search-copy strong,.afr-search-copy span){font-size:var(--afr-copy-size)!important;line-height:1.5!important;}
#top.afr-copy-unified .afr-service-bar>span{font-size:var(--afr-copy-size)!important;line-height:1.4!important;}
/* The project composition scales as a unit: compensate reading text, not headings or graphics. */
@media(min-width:1250px) and (max-width:1511px){
#top.afr-copy-unified .afr-project-case>.container{--afr-copy-size:calc(var(--afr-copy-desktop,18px) / clamp(.8,tan(atan2(100cqw,1473px)),1));}
}
