.button,.row-action,button{display:inline-block;background:#900;color:white;border:1px solid #700;padding:7px 12px;border-radius:3px;font:inherit;cursor:pointer}.button:hover,button:hover{background:#700;color:#fff}input,select,textarea{font:inherit;max-width:100%;padding:7px;border:1px solid #aaa;border-radius:3px}textarea{width:100%}.cs-workspace-main{margin-left:var(--cs-sidebar-width);padding:calc(var(--cs-topbar-height) + 20px) 24px 30px;min-height:100vh}.cs-workspace-brand{display:flex;align-items:center;gap:10px;padding:18px}.cs-workspace-brand img:last-child{max-width:190px;height:auto}.admin-heading,.form-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.table-scroll{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;background:#fff}.admin-table th{background:#900;color:#fff}.admin-table td,.admin-table th{padding:9px;border:1px solid #ddd;text-align:left}.admin-table tr:nth-child(even){background:#f5f5f5}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-field{display:flex;flex-direction:column;gap:5px}.wide-field{grid-column:1/-1}.admin-form,.admin-search,.admin-section,.admin-detail{padding:18px;background:#fff;border:1px solid #ddd;margin:15px 0}.admin-metrics,.admin-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.admin-metrics>a,.admin-tool-grid>a{padding:16px;border:1px solid #ddd;background:#fff}.admin-metrics strong{display:block;font-size:26px}.module-state,.eyebrow{font-size:12px;color:#666}.pagination{padding:16px;display:flex;justify-content:space-between;gap:12px}.sandbox-banner{background:#fff0c4;padding:10px;color:#493800}.form-error{padding:12px;background:#ffe3e3;color:#800}.success-message{padding:12px;background:#e3f6e3}.product-grid,.news-grid,.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.product-card,.news-card,.catalog-card{background:white;border:1px solid #aaa;padding:12px}.product-card h3{background:#900;color:#fff;padding:7px}.product-tag,.product-corner,.product-category,.product-contact .icon,.product-info .specifications{display:none}.product-image img{max-height:220px;object-fit:contain;width:100%}.product-summary{white-space:pre-line;font-size:14px}.product-price{font-size:23px;color:#900;text-align:center}.cs-main h1{font-size:24px;color:#900}.cs-main h2{font-size:19px}.cs-footer{padding:14px}.cs-calendar-today{background:#900;color:white}.cs-calendar-today a{color:white}.cs-calendar-table{width:100%}.cs-calendar-table td,.cs-calendar-table th{padding:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-field{border-bottom:1px solid #ddd;padding:8px}.detail-field dt{font-weight:bold}.detail-field dd{margin:0;white-space:pre-wrap}@media(max-width:900px){.cs-workspace-main{margin-left:0;padding:calc(var(--cs-topbar-height) + 15px) 12px 24px}.form-grid,.detail-grid{grid-template-columns:1fr}}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.product-price small{margin-left:.2em}.product-price>span{display:block;font-size:12px}

.cs-alert-urgent{color:#b00000!important;font-weight:bold}

.quote-mono{filter:grayscale(1)}@media print{.no-print,.cs-workspace-sidebar,.cs-workspace-topbar,.cs-header,.cs-main-menu,.cs-sidebar-left,.cs-sidebar-right,.cs-footer,.sandbox-banner{display:none!important}.cs-site,.cs-content{min-width:0!important;width:auto!important;max-width:none!important;border:0!important;box-shadow:none!important}.cs-layout{display:block!important}.cs-workspace-main{margin:0!important;padding:0!important}.quote-print{color:black;background:white}.quote-print details{display:none!important}}

/* Ritocchi concordati: ricerca, news e offerte. */
.cs-side-search{display:grid;gap:5px}.cs-side-search input,.cs-side-search .cs-button{width:100%;box-sizing:border-box;margin:0;min-width:0}.cs-side-search input{display:block}
.cs-news-strip-text{flex:1;min-width:0;line-height:1.4;min-height:2.8em;max-height:2.8em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.product-card{min-width:0}.product-image{height:180px;display:grid;place-items:center}.product-image img{height:180px;width:100%;object-fit:contain}.product-card h3{font-size:16px;line-height:1.35;height:calc(2 * 1.35em + 14px);box-sizing:border-box;overflow:hidden;margin:10px 0}.product-card h3 a{color:#fff;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.product-summary{font-size:14px;line-height:1.4;height:21em;max-height:21em;margin:10px 0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:15;line-clamp:15;white-space:pre-line}
.product-price{line-height:1.4;margin:0 0 10px}.product-list-price{font-size:12px;min-height:3.4em}.product-list-price>span{display:block}.product-discount{background:#ffdb45;border:1px solid #b00000;color:#800;padding:3px 7px;width:fit-content;margin:0 auto 3px;font-weight:bold;border-radius:3px;box-shadow:0 1px 3px #9003}.product-list-price del{color:#666}.product-price>strong{display:block}.product-saving{font-weight:bold;color:#176224}.product-price-placeholder{visibility:hidden}.product-info .product-contact{display:block;text-align:center;margin:5px 0 9px}.product-info>form{margin:0;text-align:center}.product-more{display:block;text-align:center;font-size:12px;margin-top:8px}.product-grid-detail{grid-template-columns:1fr}.product-grid-detail .product-summary{height:auto;max-height:none;display:block}.product-grid-detail h3{height:auto}
/* Compact workspace: topbar already occupies space in the normal document flow. */
.cs-admin-body{--cs-topbar-height:48px;font-size:14px;line-height:1.4}.cs-admin-body .cs-workspace-topbar{min-height:48px;padding:5px 20px;gap:12px}.cs-admin-body .cs-workspace-main{padding:12px 20px 24px;min-height:calc(100vh - 48px)}
.cs-admin-body .cs-workspace-brand{padding:4px 2px 14px;gap:8px}.cs-admin-body .cs-workspace-brand .cs-brand-logo{width:40px;height:40px;max-width:40px;flex:0 0 40px}.cs-brand-name{font-size:17px;font-weight:700;color:#fff;white-space:nowrap}.cs-brand-name>span{color:#000}
.cs-admin-body .cs-workspace-main :is(h1,h2,h3){line-height:1.2}.cs-admin-body .cs-workspace-main h1{font-size:20px;margin:0 0 6px}.cs-admin-body .cs-workspace-main h2{font-size:16px;margin:0 0 9px}.cs-admin-body .cs-workspace-main h3{font-size:15px;margin:0 0 7px}.cs-admin-body .admin-heading,.cs-admin-body .cs-admin-page-header{margin:0 0 10px;gap:8px;padding:0}.cs-admin-body .admin-heading>div>p{margin:2px 0;font-size:12px}.cs-admin-body .eyebrow{margin:0 0 2px}.cs-admin-body .sandbox-banner{padding:5px 9px;margin:0 0 8px;font-size:12px}.cs-admin-body .back-link{display:inline-block;margin:0 0 8px}
.cs-admin-body :is(.admin-section,.admin-form,.admin-search,.admin-detail){padding:12px;margin:10px 0;background:#fff;border:1px solid #d5dce3;border-radius:5px}.cs-admin-body .form-grid{gap:10px 14px}.cs-admin-body .form-grid>label,.cs-admin-body .form-field>label,.cs-admin-body .document-header-grid>label{display:flex;flex-direction:column;gap:4px;min-width:0}.cs-admin-body .form-grid input:not([type=checkbox]),.cs-admin-body .form-grid select,.cs-admin-body .form-field input,.cs-admin-body .form-field select{width:100%;box-sizing:border-box}
.cs-admin-body .cs-workspace-main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:32px;font-size:14px;padding:5px 7px}.cs-admin-body .cs-workspace-main textarea{min-height:54px}.cs-admin-body .cs-workspace-main :is(button,.cs-button){min-height:32px;padding:5px 10px;font-size:13px}.cs-admin-body .cs-workspace-main :is(.admin-table td,.admin-table th){padding:6px;font-size:13px}.cs-admin-body .form-actions{justify-content:flex-start;gap:10px;margin-top:10px}.cs-admin-body .admin-tool-grid{gap:10px}.cs-admin-body .admin-tool-grid>a{padding:12px}.cs-admin-body .admin-tool-grid h2{margin:0 0 4px}.cs-admin-body .admin-tool-grid p{margin:3px 0;font-size:13px}
.cs-admin-body .cs-workspace-main form>label:not(.check-label){display:flex;flex-direction:column;gap:4px;margin:8px 0;max-width:100%}.cs-admin-body .cs-workspace-main form>label :is(input:not([type=checkbox]),select){width:100%}.cs-admin-body .admin-search>div{display:flex;gap:7px;align-items:center}.cs-admin-body .admin-search input{flex:1;min-width:0}
.cs-admin-body .document-header-grid{display:grid;grid-template-columns:150px minmax(180px,2fr) minmax(170px,1fr);gap:10px 16px;align-items:end}.cs-admin-body .document-header-grid select,.cs-admin-body .document-header-grid input:not([type=checkbox]){width:100%}.cs-admin-body .document-header-grid .wide-field{grid-column:1/-1}.cs-admin-body .check-label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;min-height:32px}.cs-admin-body .document-stamp{display:flex;align-items:end;gap:12px}.cs-admin-body .document-stamp>label:last-child{display:flex;flex-direction:column;gap:3px;max-width:100px}
.cs-admin-body .document-lines{table-layout:fixed;min-width:880px}.document-lines .line-code{width:10%}.document-lines .line-description{width:41%}.document-lines .line-quantity{width:7%}.document-lines .line-unit{width:6%}.document-lines .line-price{width:13%}.document-lines .line-discounts{width:10%}.document-lines .line-vat{width:13%}.cs-admin-body .document-lines td{vertical-align:top}.cs-admin-body .document-lines :is(input,textarea){width:100%;max-width:100%;box-sizing:border-box;margin-bottom:3px;min-width:0}.cs-admin-body .document-lines textarea{min-height:54px;resize:vertical}.document-lines input[type=number]{text-align:right}.line-extra-discounts summary{font-size:11px;cursor:pointer;color:#245b91}.line-extra-discounts[open] summary{margin-bottom:4px}
.quote-customer-grid{grid-template-columns:2fr 1fr 1fr 1fr}.quote-component{display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px;align-items:center;padding:6px 0;border-bottom:1px solid #e5e8eb}.quote-component>label{margin:0}.quote-component>select,.quote-component>input{width:100%;min-width:0;box-sizing:border-box}.quote-extra{grid-template-columns:160px minmax(0,1fr) 110px}.quote-components{max-width:1100px}
@media(min-width:1500px){.cs-admin-body .form-grid:not(.quote-customer-grid){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.cs-admin-body .document-header-grid{grid-template-columns:1fr 1fr}.quote-customer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.cs-admin-body .cs-workspace-main{padding:10px 12px 20px;margin-left:0}.cs-admin-body .document-header-grid{grid-template-columns:1fr 1fr}.cs-admin-body .cs-workspace-topbar{padding:5px 12px}}
@media(max-width:600px){.cs-admin-body .document-header-grid,.quote-customer-grid{grid-template-columns:1fr}.quote-component{grid-template-columns:1fr;gap:4px}.quote-extra{grid-template-columns:minmax(0,1fr) 100px}.quote-extra>label:first-child{grid-column:1/-1}.cs-admin-body .form-grid{grid-template-columns:1fr}.cs-admin-body .cs-workspace-main h1{font-size:18px}}

.product-list-price{height:48px;min-height:48px}
.cs-admin-body .cs-workspace-main form:has(>label:nth-of-type(3)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:12px;border:1px solid #d5dce3;background:#fff;border-radius:5px}.cs-admin-body .cs-workspace-main form:has(>label:nth-of-type(3))>label{margin:0}.cs-admin-body .cs-workspace-main form:has(>label:nth-of-type(3))>:not(label):not(input[type=hidden]){grid-column:1/-1;justify-self:start}.cs-admin-body .cs-workspace-main form:has(>label:nth-of-type(3))>label:has(textarea){grid-column:1/-1}@media(max-width:700px){.cs-admin-body .cs-workspace-main form:has(>label:nth-of-type(3)){grid-template-columns:1fr}}
.product-grid-detail .product-summary,.product-grid-detail h3 a{-webkit-line-clamp:unset;line-clamp:unset;display:block}
.cs-admin-body .cs-admin-main .document-lines input:not([type=hidden]){height:32px;min-height:32px!important;padding:4px 6px!important;font-size:13px!important}.cs-admin-body .cs-admin-main .document-lines textarea{min-height:40px;height:40px;font-size:13px;padding:4px 6px}.line-vat-nature summary{font-size:11px;cursor:pointer;color:#245b91}.line-vat-nature[open] summary{margin-bottom:4px}

/* Testo al posto delle vecchie GIF: animazioni leggere, senza lampeggi. */
.cs-label-news,.cs-label-hot{position:relative;display:inline-block;overflow:hidden;font-family:Arial,sans-serif;font-weight:900;line-height:1.2;text-decoration:none;white-space:nowrap}
.cs-label-news{padding:5px 9px 6px;font-size:20px;letter-spacing:1.5px;color:#fff;text-shadow:0 0 7px #82b8ff;border-bottom:2px solid #8fbfff}
.cs-label-news::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#ffffff60 48%,transparent 70%);transform:translateX(-150%);animation:cs-label-sweep 7s ease-in-out infinite}
.cs-label-hot{padding:4px 10px;font-size:25px;font-style:italic;letter-spacing:1px;color:#ffe07a;text-shadow:1px 2px 0 #620000,0 0 12px #ff940060;animation:cs-hot-glow 5s ease-in-out infinite}
.cs-side-body .cs-label-hot{background:#900;border:1px solid #b00000;border-radius:5px;padding:7px 14px;font-size:23px}
@keyframes cs-label-sweep{0%,65%{transform:translateX(-150%)}90%,100%{transform:translateX(150%)}}
@keyframes cs-hot-glow{0%,100%{text-shadow:1px 2px 0 #620000,0 0 5px #ff940030}50%{text-shadow:1px 2px 0 #620000,0 0 13px #ffc35490}}
.cs-admin-body :is(a.button,a.row-action,a.cs-button:not(.cs-button-secondary)),.cs-admin-body :is(a.button,a.row-action,a.cs-button:not(.cs-button-secondary)):is(:visited,:hover,:focus-visible){color:#fff!important}
.cs-admin-body a.row-action{background:#900;border-color:#700}.cs-admin-body a.row-action:hover{background:#700}.cs-admin-body a.row-action:focus-visible{outline:3px solid #ffda70;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.cs-label-news::after,.cs-label-hot{animation:none}.cs-label-news::after{display:none}}

/* Informazioni e indicatori operativi, anche con categorie del menu chiuse. */
.cs-info-grid{align-items:start}.cs-info-list>div{align-items:baseline}.cs-info-list dt{flex:1;min-width:0}.cs-info-list dd{max-width:65%;overflow-wrap:anywhere}.cs-info-note{font-size:12px;color:#555;line-height:1.5}.cs-info-curiosity{font-size:15px;line-height:1.6}.cs-year-progress{display:block;font-size:12px;color:#555;margin-top:10px}.cs-year-progress progress{display:block;width:100%;height:14px;margin-top:5px;accent-color:#900}.cs-visitor-ip{overflow-wrap:anywhere}.cs-stats-box .cs-stats-link{color:inherit}.cs-stats-box .cs-side-title{color:#fff}.cs-stats-box small{color:#900}.cs-stats-box .cs-side-body{cursor:pointer}.cs-public-map{columns:2;column-gap:28px}.cs-public-map li{break-inside:avoid;margin-bottom:7px}
.cs-alert-dot{flex:0 0 auto;min-width:12px;height:12px;padding:2px;border-radius:50%;font-size:10px;line-height:1;vertical-align:middle}.cs-workspace-nav .cs-nav-group>summary{display:flex;align-items:center;gap:7px}.cs-workspace-nav .cs-nav-group>summary .cs-alert-dot{margin-left:auto;margin-right:5px}.cs-workspace-nav .cs-nav-link>.cs-alert-dot{margin-left:auto}.cs-admin-body .cs-workspace-nav .cs-alert-dot{min-width:12px;height:12px;box-shadow:0 0 0 1px #fff}.cs-alert-offline{background:#777!important;color:#fff!important}.document-draft-badge{display:inline-block;padding:3px 7px;border:1px solid #b78419;border-radius:4px;background:#fff0be;color:#654000;font-size:12px;font-weight:700;white-space:nowrap}.admin-table tr.document-draft{background:#fffaf0}.cs-nav-group summary:has(.cs-alert-dot:not([hidden])){font-weight:700}
@media(max-width:600px){.cs-info-grid{grid-template-columns:1fr}.cs-public-map{columns:1}}
.cs-content .cs-page-title{color:#fff}.cs-stats-box small{color:#ffeb3b}.cs-workspace-nav .cs-nav-group>summary>.cs-alert-dot{flex:0 0 auto;width:auto;max-width:max-content}

/* Menu pubblico completo: collegamento e comando di apertura separati. */
.cs-main-menu-list>.cs-has-submenu{position:relative;display:flex;align-items:stretch}.cs-main-menu-list>.cs-has-submenu>a{flex:1;padding-right:7px}.cs-submenu-toggle{border:0;border-left:1px solid #ffffff25;background:transparent;color:#fff;padding:0 10px;cursor:pointer}.cs-submenu-toggle:focus-visible{outline:2px solid #fff;outline-offset:-3px}.cs-menu-open>.cs-submenu{display:block}.cs-menu-logout{display:block;width:100%;padding:9px 12px;border:0;background:#fff;color:#222;text-align:left;font:inherit;cursor:pointer}.cs-menu-logout:hover{background:#b30000;color:white}.cs-price-list{width:100%;border-collapse:collapse;margin-bottom:18px}.cs-price-list th,.cs-price-list td{padding:9px 12px;border:1px solid #ddd;text-align:left}.cs-price-list th{background:#f1eded}.cs-price-list td:last-child,.cs-price-list th:last-child{width:150px;text-align:right;white-space:nowrap}.cs-price-list tbody tr:nth-child(even){background:#faf7f7}.offer-row-status{white-space:nowrap}.offer-row-status .cs-alert-dot{margin:0 7px 0 0}
@media(max-width:680px){.cs-main-menu-list>.cs-has-submenu{flex-wrap:wrap}.cs-main-menu-list>.cs-has-submenu>.cs-submenu{flex-basis:100%}.cs-submenu-toggle{min-width:44px}.cs-price-list td,.cs-price-list th{padding:7px}}

.cs-has-submenu.cs-menu-dismissed>.cs-submenu{display:none}

/* Calendario pubblico: feriali neri, domeniche/festività rosse, intestazione blu. */
.cs-calendar-table thead th{background:#004d80;border-color:#00324f;color:#fff}
.cs-calendar-table tbody td{color:#111;text-align:center}
.cs-calendar-table tbody td.cs-calendar-holiday{color:#c00000}
.cs-calendar-table tbody td.cs-calendar-today{background:#ffdf70;font-weight:700;box-shadow:inset 0 0 0 1px #ad7900}
.cs-calendar-message{text-align:center;margin:10px 0 2px}

.offer-row-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.offer-row-actions form{margin:0}.offer-delete-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:36px;padding:7px;background:#fff;color:#900;border:1px solid #900}.offer-delete-button:hover,.offer-delete-button:focus-visible{background:#900;color:#fff}
.offer-media-editor{margin:18px 0;border-top:1px solid #ddd;padding-top:12px}.offer-cover-preview{max-width:220px;max-height:180px;object-fit:contain}.offer-image-picker{padding:12px;border:1px solid #ddd;margin:12px 0}.offer-image-picker summary{font-weight:700;cursor:pointer}.offer-image-picker>label{display:block;margin-top:12px}.offer-image-search,.offer-image-pages{display:flex;align-items:end;gap:8px;margin:12px 0;flex-wrap:wrap}.offer-image-search label{display:flex;flex-direction:column}.offer-image-archive{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;max-height:480px;overflow:auto}.offer-image-archive article{padding:8px;border:1px solid #ddd;display:flex;flex-direction:column;gap:6px}.offer-image-archive img{width:100%;height:105px;object-fit:contain}.offer-image-archive small{overflow-wrap:anywhere}.offer-image-archive button{font-size:12px;padding:6px}.offer-editor-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px}.offer-editor-photos article{padding:10px;border:1px solid #ccc;display:flex;flex-direction:column;gap:8px}.offer-editor-photos article[hidden]{display:none}.offer-editor-photos img{height:135px;width:100%;object-fit:contain}.offer-editor-photos label{display:flex;flex-direction:column;gap:4px}.offer-editor-photos label.check-label{flex-direction:row}.offer-detail-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:20px}.offer-detail-gallery figure{margin:0;padding:10px;border:1px solid #ddd}.offer-detail-gallery img{width:100%;height:220px;object-fit:contain}.offer-detail-gallery figcaption{margin-top:7px}
