.brand-sdb { color: #a51632; }
.brand-kolmb { color: #1452a1; }
.footer .brand-sdb { color: #ff8296; }
.footer .brand-kolmb { color: #92beff; }
.footer .footer-cta { display: inline-flex; margin-top: .75rem; color: white; }
.home-hero, .quality-hero, .gamma-intro { border-radius: 18px; border: 1px solid #d5d9de; margin-bottom: 28px; }
.home-hero {
    padding: clamp(22px, 4vw, 55px);
    background: linear-gradient(90deg, #f8f8fa 28%, #f8f8faf2 49%, #ffffff12 100%), url('images/home-industriale.webp') right center / cover;
}
.home-hero .home-copy { max-width: 46rem; width: 68%; }
.home-hero .home-copy h1 { font-size: clamp(2rem, 3.5vw, 3.25rem); text-align: left; line-height: 1.05; }
.home-hero .home-copy p { text-align: left; margin-inline: 0; }
.home-hero .home-brands { justify-content: flex-start; }
.gamma-intro {
    padding: clamp(22px, 5vw, 55px);
    background: repeating-linear-gradient(169deg, transparent 0 24px, #a5163211 25px 26px), linear-gradient(113deg, #fafafb 29%, #e0e4ea 79%, #78142b 79.2%, #a51632);
}
.gamma-intro p { width: min(100%, 37rem); }
.more-products { margin-top: 42px; }
.dedicated-import-title {
    margin-bottom: 16px;
    color: #891f2b;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 640;
    letter-spacing: -.025em;
    text-shadow: 0 1px 5px #fff, 0 0 12px #fff;
}
#gamma-sdb > .catalog-grid > .product-card > summary > .product-image { background: white; }

.product-measures { display: block; color: #5b2130; font-size: .79rem; font-weight: 650; margin: .25rem 0; }
.catalog-ref { display: inline-block; font-weight: 600; }
.series-details > .catalog-ref { margin-left: .75rem; }
.details-close { display: block; margin: .6rem .8rem .1rem auto; border: 1px solid #d2aab5; border-radius: 6px; background: #fff6f8; padding: .3rem .7rem; color: #72142b; font: inherit; font-size: .88rem; cursor: pointer; }
details:not([open]) > .details-close { display: none; }
main summary { scroll-margin-top: 105px; }
.import-detail > summary { cursor: pointer; list-style: none; }
.import-detail > summary::-webkit-details-marker { display: none; }
.import-detail .workbench { height: clamp(170px, 20vw, 240px); }
.import-detail summary h2 { font-size: 1.12rem; margin: 12px 15px 3px; }
.show-description { display: block; color: #82162d; font-weight: 650; font-size: .86rem; padding: 0 15px 12px; }
.import-detail[open] .show-description { display: none; }
.quote-back { margin-bottom: 14px; }
.quality-hero { padding: clamp(18px, 4vw, 42px); background: linear-gradient(90deg,#f5f6f7ed 15%,#f5f6f7aa 65%,#f5f6f730), url('images/laboratorio-metrologia.webp') center / cover; }
.reader-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 12px; }
.reader h1 { margin: 18px 0 10px; }
.reader-controls label { display: flex; gap: .45rem; align-items: center; }
.reader-controls select { font: inherit; padding: .35rem; }
.reader-controls button:disabled { opacity: .48; cursor: default; }
.reader-controls output { min-width: 6.5ch; text-align: center; }
.reader [hidden], .sdb-assistant [hidden] { display: none !important; }
.reader-window { margin-top: 14px; padding: 12px; border-radius: 12px; background: #dce0e5; overflow: auto; }
.reader-pages { display: flex; justify-content: center; gap: 2px; min-height: 200px; transform-origin: center; }
.reader-pages img { display: block; max-width: calc(50% - 1px); max-height: 72vh; width: auto; height: auto; object-fit: contain; align-self: flex-start; box-shadow: 0 2px 6px #0003; background: white; }
.reader-pages img:only-child { max-width: 100%; }
.reader-zoom .reader-pages { justify-content: flex-start; width: max-content; }
.reader-zoom .reader-pages img { width: max(800px, 95vw); max-width: none; max-height: none; }
.sdb-assistant { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; font-size: .95rem; }
.assistant-toggle { display: block; margin-left: auto; box-shadow: 0 5px 15px #38101e33; border-radius: 25px; padding-inline: 1.1rem; }
.assistant-panel { width: min(400px, calc(100vw - 32px)); background: #fff; color: #222b38; border-radius: 14px; border: 1px solid #d5d9de; box-shadow: 0 10px 38px #20121e4d; margin-bottom: 8px; overflow: hidden; }
.assistant-panel header { display: flex; justify-content: space-between; align-items: center; padding: .75rem .9rem; color: white; background: #811931; }
.assistant-panel header .brand-sdb { color: white; }
.assistant-panel header button { font: inherit; background: transparent; color: white; border: 1px solid #fff9; border-radius: 5px; cursor: pointer; padding: .15rem .5rem; }
.assistant-log { max-height: min(42vh, 360px); overflow: auto; padding: .7rem .9rem; overflow-wrap: anywhere; }
.assistant-log p { margin: 0 0 .45rem; }
.assistant-log article { padding: .65rem; background: #f3f5f8; margin: .55rem 0; border-radius: 8px; }
.assistant-log article.question { background: #f9e9ee; margin-left: 1.15rem; }
.assistant-log article a { display: inline-block; color: #7e1730; text-decoration: underline; }
.assistant-examples { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .75rem .65rem; }
.assistant-examples button { font: inherit; font-size: .79rem; color: #77142c; border-radius: 14px; border: 1px solid #d5b9c3; background: #fff; padding: .24rem .55rem; cursor: pointer; }
.assistant-form { padding: .65rem .75rem; border-top: 1px solid #e1e4e9; display: flex; gap: .4rem; }
.assistant-form input { width: 100%; min-width: 0; padding: .4rem .55rem; font: inherit; border: 1px solid #b0b7c1; border-radius: 6px; }
.assistant-form button { padding: .35rem .65rem; }
@media (max-width: 740px) {
    .home-hero { padding-top: 165px; background: linear-gradient(180deg,transparent 0,#f8f8fa 160px), url('images/home-industriale.webp') top right / auto 240px no-repeat, #f8f8fa; }
    .home-hero .home-copy { width: 100%; }
    .gamma-intro { background: linear-gradient(143deg,#f9fafb 40%,#e0e4ea 91%,#a51632 91.2%); }
}


.assistant-toggle .brand-sdb { color: white; }

body {
    background: repeating-linear-gradient(102deg, #fff2 0 1px, #c0c6d010 1px 3px, transparent 3px 6px),
        linear-gradient(110deg, #f8f9fa, #eceff2 55%, #f8f9fa);
}
main :is(.prose, .home-copy, .home-offers, .home-secondary, .sector-copy, .import-detail, .accessory-link) p:not(.page-actions) {
    text-align: justify;
    hyphens: auto;
}
main .quality-hero h1 {
    max-width: 22ch;
    margin-bottom: .65rem;
    font-size: clamp(1.7rem, 3.75vw, 3.35rem);
}
.quality-tools {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 14px;
}
.quality-tools .quality-photo {
    background: #fff;
    border: 1px solid #d5d9de;
    border-radius: 12px;
    overflow: hidden;
}
.quality-tools .quality-photo img {
    width: 100%;
    height: clamp(155px, 17vw, 210px);
    object-fit: contain;
    background: #f4f5f7;
}
.quality-tools figcaption { padding: .65rem .85rem; }
.quality-downloads { margin-top: 20px; }
.packaging-catalog { display: inline-block; line-height: 1.65; }
.design-benefits > div {
    position: relative;
    border: 1px solid #d2d7de;
    border-top: 4px solid #891f2b;
    border-radius: 12px;
    padding: 18px 17px;
    box-shadow: 0 4px 12px #242b3710;
    background: linear-gradient(138deg, #fff 20%, #edf0f3 96%);
}
.design-benefits dt { color: #861d32; font-size: 1.22rem; }
.design-benefits dd { margin-top: .5rem; }
.footer {
    background: repeating-linear-gradient(102deg, #ffffff08 0 1px, transparent 1px 5px),
        linear-gradient(115deg, #222832, #303946 66%, #212731);
}
.footer-products p a { text-underline-offset: .18em; }
.footer-bottom { padding-bottom: 48px; }
@media (max-width: 520px) {
    main :is(.sector-copy, .import-detail) p:not(.page-actions) { text-align: left; }
}

.technology-notes {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid #891f2b;
    border-radius: 0 8px 8px 0;
    background: #f0f2f5;
}
.technology-notes h4 { margin: .35rem 0; }
.technology-notes .technical-source { margin: .7rem 0 0; font-size: .86rem; }
.assistant-log article > section + section {
    border-top: 1px solid #ced5df;
    margin-top: .75rem;
    padding-top: .75rem;
}
.assistant-sources { display: grid; gap: .3rem; }

.page-navigation { padding: 1.5rem 1rem 2rem; text-align: center; }


/* Presentazioni a tutta larghezza */
.home-full-background, .quality-full-background {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}
.home-full-background {
    background-image: linear-gradient(90deg, #f8f8faf5 14%, #f8f8fad9 64%, #f8f8fa81), url('images/home-industriale.webp');
}
.quality-full-background {
    background-image: linear-gradient(90deg, #f5f6f7f5 15%, #f5f6f7d9 66%, #f5f6f7a6), url('images/laboratorio-metrologia.webp');
}
.home-full-background .home-hero, .quality-full-background .quality-hero {
    background: none;
    border: 0;
    border-radius: 0;
}
.home-full-background .home-hero { padding: 0; }
.home-full-background .home-copy { max-width: 57rem; width: 100%; }
.home-full-background .home-copy h1, .design-hero .single-line-title {
    font-size: clamp(1rem, 5vw, 3.75rem);
    white-space: nowrap;
}
.design-hero .design-claim {
    font-size: clamp(.64rem, 2.45vw, 1.25rem);
    white-space: nowrap;
}
.design-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.technology-practice { margin: 0 1rem 1rem; }
.quality-full-background .quality-hero { padding: 0; }
.quality-full-background .quality-hero .page-intro { padding: 0; background: none; }
main .quality-hero h1 {
    max-width: none;
    font-size: clamp(1rem, 5vw, 3.35rem);
}
.quality-hero h1 span { display: block; white-space: nowrap; }
.quality-hero h1 span + span { margin-top: .2em; }
#gamma-kolmb .table-wrap { max-width: 38rem; }
#gamma-kolmb table { font-size: .86rem; }
#gamma-kolmb :is(th, td) { padding: .3rem .55rem; }
#gamma-kolmb :is(th, td):nth-child(2) { color: #4b5563; font-weight: 400; }
.import-detail > summary {
    position: relative;
    border: 1px solid #aeb8c4;
    border-radius: 10px;
}
.import-detail > summary::after {
    content: "";
    position: absolute;
    bottom: .8rem;
    right: 1rem;
    width: .47rem;
    height: .47rem;
    border: solid #861d32;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.import-detail[open] > summary::after { transform: rotate(225deg); }
.import-detail > summary:hover, .import-detail > summary:focus-visible { border-color: #861d32; }
.import-detail summary h2 {
    margin: .55rem 2.3rem .55rem .85rem;
    font-size: .94rem;
    font-weight: 550;
}
@media (max-width: 660px) {
    .design-benefits { grid-template-columns: 1fr; }
    .home-full-background { background-image: linear-gradient(#f8f8fad9, #f8f8faf2), url('images/home-industriale.webp'); }
}

.home-full-background { min-height: calc(100svh - var(--header-height)); }









.reference-breadcrumb { margin-bottom: 1.15rem; font-size: .9rem; }
.reference-copy { max-width: 76ch; margin-bottom: 1.5rem; }
.reference-page section > h2 { margin: 1.25rem 0 .75rem; }
.reference-series { background: white; border: 1px solid var(--border); border-radius: 9px; margin-block: .65rem; }
.reference-series > summary { cursor: pointer; font-weight: 650; padding: .8rem 1rem; }
.reference-series .table-wrap { margin: 0 .75rem .75rem; overflow-x: auto; }
.reference-series table { border-collapse: collapse; width: 100%; }
.reference-series caption { text-align: left; padding: .55rem; }
.reference-series :is(th,td) { text-align: left; white-space: nowrap; padding: .45rem .65rem; border-bottom: 1px solid var(--border); }
.reference-series tr:target { background: #fff0d6; }
.reference-technology-links { margin-block: 1.4rem; }

/* Navigazione principale */
.navbar {
    background: linear-gradient(180deg, #eef0f2, #dce0e4);
    box-shadow: 0 4px 16px #38152218;
}
.navbar::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, #74162e, #b21d3c 48%, #831831);
    pointer-events: none;
}
.nav-menu { gap: clamp(4px, .7vw, 11px); }
.nav-menu .nav-link {
    display: block;
    padding: .48rem .59rem;
    color: #38252d;
    border-radius: 7px;
    transition: color .18s ease, background-color .18s ease;
}
.nav-menu .nav-link:hover, .nav-menu .nav-link:focus-visible {
    color: #75172f;
    background-color: #efdae1;
}
.nav-menu .nav-link[aria-current="page"] {
    color: #fff;
    background: linear-gradient(115deg, #75172f, #a12747);
    text-decoration: none;
}
.navbar .search-nav {
    color: #fff;
    background: #9e1d3b;
    border-color: #881832;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.navbar .search-nav:hover, .navbar .search-nav:focus-visible {
    color: #fff;
    background-color: #851e3b;
    border-color: #851e3b;
}
.navbar .hamburger { background: #fff8fa; border-color: #d3a2b1; }
.navbar .bar { background: #75172f; }
@media (max-width: 1080px) {
    .nav-menu {
        background: linear-gradient(180deg, #eef0f2, #dce0e4);
        border-bottom-color: #d3a2b1;
        box-shadow: 0 12px 20px #38152220;
    }
    .nav-menu .nav-link { padding: .55rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-menu .nav-link, .navbar .search-nav { transition: none; }
}

.gamma-full-background {
    background: linear-gradient(90deg, #f8f8faf2 8%, #f8f8fad1 54%, #f8f8fa52),
        url('images/gamma-prodotti-industriale.webp') right top / auto clamp(320px, 53vw, 820px) no-repeat,
        #f6f7f9;
}
.gamma-full-background .gamma-intro {
    padding: 0;
    border: 0;
    background: none;
    margin: 0 0 .8rem;
}
.gamma-full-background #gamma-sdb { margin-top: 0; }

.design-full-background {
    background: linear-gradient(#f3f5f8c9, #f3f5f8de),
        url('images/fabbrica-mondo.webp') center top / cover fixed no-repeat;
}
.design-full-background .design-hero {
    background: linear-gradient(90deg, #121620eb 7%, #121620a5);
}
.production-item > summary { cursor: pointer; list-style: none; }
.production-item > summary::-webkit-details-marker { display: none; }
.production-item .production-photo { display: block; }
.production-title {
    position: relative;
    display: block;
    padding: .6rem 2rem .6rem .75rem;
    color: #38252d;
    font-size: .88rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border);
}
.production-title::after {
    content: "";
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: .44rem;
    height: .44rem;
    border: solid var(--accent);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.production-item[open] .production-title::after { transform: rotate(225deg); }
.production-item summary:hover .production-title,
.production-item summary:focus-visible .production-title { background: #f7e9ef; color: var(--accent); }
.production-description { padding: .2rem .75rem .75rem; }
.import-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    align-items: start;
    gap: .6rem;
}
.compact-import > summary.product-content, .import-options .import-choice {
    min-height: 2.85rem;
    padding-block: .4rem;
    font-size: .88rem;
    font-weight: 500;
}
.compact-import .product-text strong { font-weight: 550; }
.compact-import .product-image { width: 40px; height: 30px; }
.compact-import .page-actions > a { font-size: .86rem; padding: .38rem .7rem; }
.import-options .import-choice { display: flex; align-items: center; justify-content: flex-start; }
@media (max-width: 640px) {
    .gamma-full-background {
        background: linear-gradient(90deg, #f8f8fadb, #f8f8fa9c),
            url('images/gamma-prodotti-industriale.webp') right top / auto 340px no-repeat,
            #f6f7f9;
    }
    .design-full-background { background-attachment: scroll; background-size: cover; }
}
@media (max-width: 640px) {
    .home-full-background .home-copy h1 { font-size: clamp(.85rem, 4.55vw, 1.8rem); }
}

.gamma-full-background .product-content {
    min-height: 82px;
    padding-block: .45rem;
}
.gamma-full-background .product-image { width: 62px; height: 56px; }
.gamma-full-background .import-options {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.gamma-full-background .import-options .product-content {
    min-height: 62px;
}
.gamma-full-background .import-options .product-image { width: 43px; height: 39px; }
.gamma-full-background .import-options strong { font-size: .88rem; font-weight: 550; }
.gamma-full-background .import-options > .import-item > :not(summary) { padding-inline: .85rem; }
.production-section .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: .75rem;
}
.production-section .production-item .production-photo {
    display: flex;
    height: clamp(122px, 13vw, 155px);
    padding: .5rem;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #e1e4e8, #c2c8ce);
}
.production-section .production-item .production-photo img {
    width: 100%; height: 100%; object-fit: contain;
}

.gamma-full-background .product-content { height: 88px; }
.gamma-full-background .import-options .product-content { height: 62px; }
.gamma-full-background .product-text > span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
