﻿/* Fandis Sizing – stile delle pagine del calcolatore, profilo e accesso.
   Riprende la grafica del prototipo WordPress, resa responsive.
   Classi con prefisso sz- e selettori sotto .sz per prevalere sul template (main.css). */

/* Caratteri Roboto e Roboto Condensed (Google, licenza SIL Open Font License) ospitati in assets/fonts:
   un file "variabile" per tutti gli spessori; latin-ext viene scaricato solo se la pagina usa quei caratteri. */
@font-face { font-family: 'Roboto'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/roboto-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/roboto-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/roboto-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/roboto-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/roboto-condensed-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/roboto-condensed-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--sz-blue: #4a98e2;
	--sz-blue-dark: #2f7fcc;
	--sz-navy: #1f3b57;
	--sz-green: #4caf6e;
	--sz-green-dark: #3b9a5c;
	/* Colori dei testi e dei pulsanti con contrasto WCAG AA (almeno 4,5:1); --sz-blue e --sz-green restano per linee e grafici */
	--sz-action: #2077c9;
	--sz-action-dark: #1a63a6;
	--sz-go: #398352;
	--sz-go-dark: #2e6c43;
	--sz-danger: #b8322e;
	--sz-ink: #23272b;
	--sz-text: #3d4248;
	--sz-muted: #5f666d;   /* almeno 4,5:1 anche sugli sfondi grigi chiari (#eef0f2) */
	--sz-line: #e2e5e9;
	--sz-field: #f6f7f8;
	--sz-page: #ffffff;
	--sz-card: #ffffff;
	--sz-warn-bg: #fff8e1;
	--sz-warn-line: #f0c24b;
	--sz-error: #d64541;
	--sz-topbar: #33373c;
	--sz-footer: #45494e;
	--sz-footer-bottom: #1f2226;
	--sz-radius: 4px;
	--sz-shadow: 0 2px 18px rgba(31, 59, 87, 0.08);
	--sz-heading: "Roboto Condensed", "Roboto", Arial, sans-serif;
	--sz-body: "Roboto", Arial, sans-serif;
}

.sz, .sz *, .sz *::before, .sz *::after { box-sizing: border-box; }

body.sz { margin: 0; }

.sz {
	font-family: var(--sz-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--sz-text);
	background: var(--sz-page);
	-webkit-text-size-adjust: 100%;
}

.sz a { color: var(--sz-action); text-decoration: none; }
.sz a:hover { text-decoration: underline; }
/* Link dentro un testo: sottolineati, così si riconoscono anche senza distinguere i colori (WCAG 1.4.1) */
.sz main p a:not(.sz-btn), .sz main li a:not(.sz-btn), .sz main label a { text-decoration: underline; text-underline-offset: 2px; }

/* Contenitore fino a 1440px (www.fandis.com: 1213px su schermo 1440, 1493px su 1920). Margine laterale 20px su telefono, 40px su schermi larghi. */
.sz-container { --sz-gutter: clamp(20px, 3vw, 40px); width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--sz-gutter); }

/* ---------- Header ---------- */
.sz-topbar { background: var(--sz-topbar); color: #fff; font-size: 13px; letter-spacing: 0.04em; }
.sz-topbar .sz-container { display: flex; justify-content: flex-end; align-items: stretch; gap: 22px; min-height: 34px; }
.sz-topbar a { color: #fff; display: inline-flex; align-items: center; text-transform: uppercase; }
/* Selettore della lingua: globo con la lingua attuale e menu a discesa */
.sz-lang { position: relative; display: flex; align-items: stretch; }
.sz-lang summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: #fff; text-transform: uppercase; padding: 0 2px; user-select: none; }
.sz-lang summary::-webkit-details-marker { display: none; }
.sz-lang summary:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; border-radius: 2px; }
.sz-lang-caret { font-size: 12px; transition: transform 0.2s; }
.sz-lang[open] .sz-lang-caret { transform: rotate(180deg); }
.sz-lang-menu { position: absolute; right: -8px; top: 100%; z-index: 60; min-width: 170px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border-radius: var(--sz-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); letter-spacing: 0; }
.sz-topbar .sz-lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; color: var(--sz-ink); font-size: 14px; text-transform: none; }
.sz-topbar .sz-lang-menu a span { color: var(--sz-muted); font-size: 12px; }
.sz-topbar .sz-lang-menu a:hover { background: #f1f7fd; text-decoration: none; }
.sz-topbar .sz-lang-menu a[aria-current] { font-weight: 700; color: var(--sz-action); }
.sz-topbar a.sz-topbar-brand img { display: block; width: 20px; height: auto; margin-right: 8px; }
.sz-topbar a.sz-topbar-brand { background: #214c9c; font-family: var(--sz-heading); font-weight: 700; font-size: 15px; padding: 0 14px; margin-right: calc(-1 * var(--sz-gutter)); }

.sz-header { background: #fff; border-bottom: 1px solid var(--sz-line); }
.sz-header .sz-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.sz-header img { height: 54px; width: auto; display: block; }
.sz-header nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Hero compatta ---------- */
.sz-hero {
	position: relative;
	color: #fff;
	text-align: center;
	padding: 56px 20px 60px;
	background: var(--sz-navy);
	overflow: hidden;
}
.sz-hero > .sz-hero-bg { position: absolute; inset: 0; z-index: 0; }
.sz-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.sz-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 45, 80, 0.55), rgba(20, 45, 80, 0.72)); }
.sz-hero > *:not(.sz-hero-bg) { position: relative; z-index: 2; }
.sz-hero h1 { font-family: var(--sz-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; color: #fff; }
.sz-hero .sz-hero-sub { font-size: clamp(16px, 2.4vw, 19px); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 auto 14px; }
.sz-hero p { max-width: 760px; margin: 0 auto; font-size: 15px; opacity: 0.95; text-wrap: balance; }

/* ---------- Titolo di pagina ---------- */
.sz-page-title { text-align: center; margin: 56px auto 32px; padding: 0 20px; }
.sz-page-title::before { content: ""; display: block; width: 150px; height: 3px; background: var(--sz-blue); margin: 0 auto 18px; }
.sz-page-title p { margin: 0 0 6px; font-size: 18px; color: var(--sz-text); }
.sz-page-title h2 { margin: 0; font-family: var(--sz-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(22px, 3.6vw, 30px); color: var(--sz-ink); }

/* ---------- Scheda e sezioni ---------- */
.sz-card { background: var(--sz-card); border-radius: var(--sz-radius); box-shadow: var(--sz-shadow); padding: 36px 40px; margin: 0 auto 32px; max-width: 920px; }
.sz-card--narrow { max-width: 560px; }

.sz-section + .sz-section { margin-top: 44px; }
.sz-section-intro { font-style: italic; font-size: 13px; color: var(--sz-muted); margin: 0 0 4px; }
.sz-section-title { font-family: var(--sz-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 22px; color: var(--sz-ink); margin: 0 0 24px; padding-bottom: 10px; border-bottom: 3px solid var(--sz-blue); }
.sz-subtitle { font-family: var(--sz-heading); font-weight: 700; letter-spacing: 0.04em; font-size: 18px; color: var(--sz-ink); margin: 28px 0 12px; }

/* ---------- Griglia campi ---------- */
.sz-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.sz-col-12 { grid-column: span 12; }
.sz-col-6 { grid-column: span 6; }
.sz-col-4 { grid-column: span 4; }
.sz-col-3 { grid-column: span 3; }

/* ---------- Campi ---------- */
.sz-field { display: flex; flex-direction: column; min-width: 0; }
.sz .sz-label { display: block; font-weight: 600; font-size: 14px; color: var(--sz-ink); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.sz-req { color: var(--sz-danger); margin-left: 2px; }
.sz-help { font-style: italic; font-size: 12.5px; color: var(--sz-muted); margin-top: 6px; line-height: 1.4; }
.sz-error-text { color: var(--sz-danger); font-size: 13px; margin-top: 6px; }

.sz-control { position: relative; display: flex; align-items: stretch; }
.sz .sz-input, .sz .sz-select {
	width: 100%;
	height: 46px;
	padding: 0 12px;
	font: inherit;
	font-size: 16px;
	color: var(--sz-ink);
	background: var(--sz-field);
	border: 1px solid var(--sz-line);
	border-radius: var(--sz-radius);
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.sz .sz-select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b727a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.sz .sz-input::placeholder { color: #a7adb3; }
.sz .sz-input:focus, .sz .sz-select:focus { outline: none; background-color: #fff; border-color: var(--sz-blue); box-shadow: 0 0 0 3px rgba(74, 152, 226, 0.2); }
.sz .sz-input.is-invalid, .sz .sz-select.is-invalid { border-color: var(--sz-error); }
.sz .sz-input[readonly], .sz .sz-input:disabled { color: var(--sz-muted); background: #eef0f2; }

/* Unità di misura dentro il campo */
.sz-unit .sz-input { padding-right: 52px; }
.sz-unit::after {
	content: attr(data-unit);
	position: absolute;
	right: 0; top: 0; bottom: 0;
	min-width: 44px;
	padding: 0 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; color: var(--sz-muted);
	border-left: 1px solid var(--sz-line);
	pointer-events: none;
}

/* ---------- Selezione tipo di installazione ---------- */
.sz-mounting-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.sz-mounting-group-title { font-size: 13px; font-weight: 600; color: var(--sz-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.sz-mounting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sz-mounting input { position: absolute; opacity: 0; pointer-events: none; }
.sz .sz-mounting label {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 8px 6px 10px;
	border: 1px solid var(--sz-line); border-radius: var(--sz-radius);
	background: #fff; cursor: pointer; text-align: center;
	font-size: 13px; line-height: 1.25; font-weight: 400; color: var(--sz-text);
	text-transform: none; letter-spacing: 0; margin: 0;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.sz-mounting label::before, .sz-mounting label::after { display: none !important; }
.sz-mounting img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; }
.sz-mounting label:hover { border-color: #b9c3cc; }
.sz-mounting input:checked + label { border: 2px solid var(--sz-blue); padding: 7px 5px 9px; box-shadow: 0 0 0 3px rgba(74, 152, 226, 0.15); font-weight: 600; color: var(--sz-ink); }
.sz-mounting input:focus-visible + label { outline: 2px solid var(--sz-blue); outline-offset: 2px; }

/* ---------- Disclaimer ---------- */
.sz-disclaimer { display: flex; gap: 12px; align-items: flex-start; background: var(--sz-warn-bg); border: 1px solid var(--sz-warn-line); border-radius: var(--sz-radius); padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--sz-text); }
.sz-disclaimer input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sz-blue); }

.sz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.sz-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sz-blue); }

/* ---------- Pulsanti ---------- */
.sz .sz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px;
	font-family: var(--sz-body); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: #fff; background: var(--sz-action);
	border: 0; border-radius: var(--sz-radius); box-shadow: none;
	cursor: pointer; text-decoration: none; line-height: 1;
	transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.sz .sz-btn:hover { background: var(--sz-action-dark); text-decoration: none; color: #fff; }
.sz .sz-btn:active { transform: translateY(1px); }
.sz .sz-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(74, 152, 226, 0.35); }
.sz .sz-btn:disabled, .sz .sz-btn[aria-disabled="true"] { background: #c4c9ce; color: #fff; cursor: not-allowed; transform: none; }
.sz .sz-btn--go { background: var(--sz-go); }
.sz .sz-btn--go:hover { background: var(--sz-go-dark); }
.sz .sz-btn--dark { background: #4a4f55; }
.sz .sz-btn--dark:hover { background: #33373c; }
.sz .sz-btn--small { min-height: 36px; padding: 0 14px; font-size: 12px; letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
.sz .sz-btn--block { width: 100%; }
.sz-actions { display: flex; justify-content: center; margin-top: 28px; }
.sz-actions .sz-btn { min-width: 260px; }

/* ---------- Risultati ---------- */
.sz-results { margin-top: 12px; }
.sz-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sz-kpi { border: 1px solid var(--sz-line); border-top: 4px solid var(--sz-blue); border-radius: var(--sz-radius); padding: 16px 18px 18px; background: #fff; }
.sz-kpi-label { font-size: 13px; font-weight: 600; color: var(--sz-ink); text-transform: uppercase; letter-spacing: 0.05em; }
.sz-kpi-value { font-family: var(--sz-heading); font-weight: 700; font-size: 40px; line-height: 1.1; color: var(--sz-ink); margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.sz-kpi-value small { font-family: var(--sz-body); font-size: 16px; font-weight: 400; color: var(--sz-muted); margin-left: 4px; }
.sz-kpi-value.is-text { font-size: 20px; padding: 10px 0; }
.sz-kpi-use { font-size: 13px; color: var(--sz-muted); }
.sz-kpi-secondary { font-size: 14px; color: var(--sz-muted); margin: -2px 0 4px; }
/* Unità di misura in cima ai calcolatori: unità attuali e pulsanti per cambiarle */
.sz-units { padding: 16px 18px 18px; margin: 0 0 32px; border: 1px solid #cfe2f6; border-radius: var(--sz-radius); background: #f1f7fd; min-width: 0; }
.sz-units-current { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; float: left; width: 100%; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid #cfe2f6; font-size: 15px; color: var(--sz-text); }
.sz-units-current i { color: var(--sz-action); }
.sz-units-current strong { color: var(--sz-ink); letter-spacing: 0.02em; }
.sz-units-edit-label { clear: both; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--sz-ink); }
.sz-units-edit-label small { font-weight: 400; color: var(--sz-muted); }
.sz-units-groups { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.sz-units-group { display: flex; flex-direction: column; gap: 6px; }
.sz-units-label { font-size: 13px; color: var(--sz-muted); }
.sz-seg { display: inline-flex; background: #fff; border: 1px solid #b9d3ee; border-radius: var(--sz-radius); padding: 3px; gap: 3px; }
.sz-seg label { position: relative; margin: 0; cursor: pointer; }
.sz-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sz-seg span { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 52px; min-height: 40px; padding: 4px 14px; border-radius: 3px; font-size: 15px; font-weight: 600; color: var(--sz-action); line-height: 1.2; text-align: center; transition: background-color 0.15s, color 0.15s; }
.sz-seg span strong { font-size: 14px; }
.sz-seg span small { font-size: 11px; font-weight: 400; }
.sz-seg label:hover span { background: #e3effb; }
.sz-seg input:checked + span { background: var(--sz-action); color: #fff; }
.sz-seg input:focus-visible + span { outline: 2px solid var(--sz-blue-dark); outline-offset: 2px; }

.sz-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sz-product { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; border: 1px solid var(--sz-line); border-radius: var(--sz-radius); padding: 16px; background: #fff; }
.sz-product-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--sz-line); border-radius: var(--sz-radius); padding: 6px; }
.sz-product-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sz-product-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--sz-go); padding: 3px 8px; border-radius: 2px; }
.sz-product-tag.is-alt { background: var(--sz-muted); }
.sz-product-code { font-family: var(--sz-heading); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; color: var(--sz-ink); overflow-wrap: anywhere; }
.sz-product-desc { font-size: 14px; color: var(--sz-text); }
.sz-product-power { font-size: 14px; color: var(--sz-muted); }
.sz-product-power strong { color: var(--sz-ink); font-variant-numeric: tabular-nums; }
.sz-product .sz-btn { align-self: flex-start; margin-top: 6px; }
.sz-notice { border-left: 4px solid var(--sz-blue); background: #f1f7fd; padding: 14px 16px; border-radius: var(--sz-radius); font-size: 15px; color: var(--sz-ink); }

/* ---------- Tabella storico ---------- */
.sz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sz-table thead tr { background: linear-gradient(90deg, var(--sz-action), var(--sz-navy)); }
.sz-table th { color: #fff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; padding: 12px 10px; text-align: left; }
.sz-table td { padding: 12px 10px; border-bottom: 1px solid var(--sz-line); vertical-align: middle; }
.sz-table tr:nth-child(even) td { background: #fafbfc; }
.sz-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: #e1f2f4; color: #1d6f7a; }
.sz-badge--outdoor { background: #fdf0dc; color: #8a5a12; }

/* ---------- Footer ---------- */
.sz-footer { background: var(--sz-footer); color: #e8eaec; padding: 44px 0 28px; margin-top: 64px; font-size: 14px; }
.sz-footer .sz-container { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; }
/* Titoli del piè di pagina: h2 (ordine dei titoli corretto anche nelle pagine senza altri h2), stesso aspetto di prima */
.sz-footer h2 { font-family: var(--sz-heading); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 16px; color: #fff; margin: 0 0 14px; }
.sz-footer p { margin: 0 0 14px; }
.sz-social { display: flex; gap: 8px; }
.sz-social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--sz-action); border-radius: 3px; font-weight: 700; font-size: 13px; }
.sz-footer-bottom { background: var(--sz-footer-bottom); color: #cfd3d7; font-size: 12px; padding: 16px 0; }
.sz-footer-bottom .sz-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sz-footer-bottom a { color: #fff; text-decoration: underline; }

/* ---------- Elementi di pagina ---------- */
.sz-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--sz-ink); padding: 8px 14px; border-radius: var(--sz-radius); }
.sz-skip:focus { left: 8px; }
.sz-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sz :focus-visible { outline: 2px solid var(--sz-blue); outline-offset: 2px; }
.sz [hidden] { display: none !important; }
.sz-center { text-align: center; }
.sz-divider { height: 1px; background: var(--sz-line); margin: 26px 0 20px; }
.sz-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--sz-action); cursor: pointer; }
.sz-link:hover { text-decoration: underline; }
.sz-help--lead { margin: -4px 0 14px; }
.sz-fieldset { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; }
.sz-fieldset legend { padding: 0; margin: 0 0 12px; }
/* Campo disattivato: attenuati campo ed etichetta, il suggerimento resta leggibile (spiega perché è disattivato) */
.sz-field.is-disabled > :not(.sz-help) { opacity: 0.55; }
.sz-card-width { max-width: 920px; margin-left: auto; margin-right: auto; }
.sz-quick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.sz-actions--row { gap: 10px; flex-wrap: wrap; }
.sz-actions--row .sz-btn { min-width: 200px; }

.sz-notice--spaced { margin-top: 14px; }
.sz-notice--ok { border-left-color: var(--sz-green); background: #eef8f1; }
.sz-notice--error { border-left-color: var(--sz-error); background: #fdf0ef; }
.sz-card--narrow .sz-notice { margin-bottom: 20px; }
.sz-form-error { color: var(--sz-danger); text-align: center; font-weight: 600; margin: 18px 0 0; }
.sz-form-error.is-ok { color: var(--sz-green-dark); font-weight: 400; }
.sz-empty { color: var(--sz-muted); font-style: italic; text-align: center; padding: 16px 0; }

/* Pulsante con caricamento */
.sz-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: sz-spin 0.8s linear infinite; }
.sz .sz-btn.is-busy { cursor: progress; }
.sz-btn.is-busy .sz-spinner { display: inline-block; }
@keyframes sz-spin { to { transform: rotate(360deg); } }

/* Password con pulsante mostra/nascondi */
.sz-password .sz-input { padding-right: 48px; }
.sz-password-toggle { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; border: 0; background: none; color: var(--sz-muted); cursor: pointer; font-size: 16px; }
.sz-password-toggle:hover { color: var(--sz-ink); }

/* Campo fasi fisso (una sola opzione) */
#szPhaseField.is-fixed .sz-select { background-image: none; }

/* Notifiche temporanee */
.sz-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.sz-toast { background: var(--sz-ink); color: #fff; padding: 12px 16px; border-radius: var(--sz-radius); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); font-size: 14px; border-left: 4px solid var(--sz-blue); transition: opacity 0.4s, transform 0.4s; }
.sz-toast--ok { border-left-color: var(--sz-green); }
.sz-toast--error { border-left-color: var(--sz-error); }
.sz-toast.is-leaving { opacity: 0; transform: translateY(8px); }

/* Storico: rinomina, paginazione, pulsanti icona */
.sz-td-name { font-weight: 600; color: var(--sz-ink); }
.sz-icon-btn { background: none; border: 0; padding: 6px; margin-left: 4px; color: var(--sz-muted); cursor: pointer; border-radius: var(--sz-radius); }
.sz-icon-btn:hover { color: var(--sz-action); background: #f1f7fd; }
.sz-td-actions { white-space: nowrap; }
.sz-td-actions .sz-btn + .sz-btn { margin-left: 6px; }
.sz-rename { display: flex; gap: 6px; align-items: center; }
.sz .sz-input--inline { height: 36px; font-size: 14px; }
.sz-pager { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.sz-pager span { padding: 6px 4px; color: var(--sz-muted); }
.sz-pager-btn { min-width: 36px; height: 36px; border: 1px solid var(--sz-line); background: #fff; border-radius: var(--sz-radius); cursor: pointer; font: inherit; font-size: 14px; color: var(--sz-ink); }
.sz-pager-btn:hover:not(:disabled) { border-color: var(--sz-action); color: var(--sz-action); }
.sz-pager-btn.is-current { background: var(--sz-action); border-color: var(--sz-action); color: #fff; }
.sz-pager-btn:disabled { opacity: 0.4; cursor: default; }

/* Finestra di dettaglio */
.sz-dialog { width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--sz-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.sz-dialog::backdrop { background: rgba(20, 30, 45, 0.55); }
.sz-dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 12px 24px; background: #fff; border-bottom: 1px solid var(--sz-line); font-family: var(--sz-heading); text-transform: uppercase; letter-spacing: 0.06em; }
.sz-dialog-body { padding: 24px; }

/* Riepilogo di un calcolo (dettaglio e report) */
.sz-summary-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.sz-data { width: 100%; border-collapse: collapse; font-size: 14px; }
.sz-data th, .sz-data td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--sz-line); vertical-align: top; }
.sz-data th { font-weight: 400; color: var(--sz-muted); padding-right: 12px; width: 55%; }
.sz-data td { font-weight: 600; color: var(--sz-ink); }

/* Report stampabile */
.sz-report-page { padding-top: 28px; }
.sz-report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 920px; margin: 0 auto 16px; }
.sz-report-toolbar span { display: flex; gap: 8px; }
.sz-report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 3px solid var(--sz-blue); }
.sz-report-head img { height: 52px; width: auto; }
.sz-report-head div { text-align: right; display: flex; flex-direction: column; font-size: 14px; color: var(--sz-muted); }
.sz-report-head strong { font-family: var(--sz-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: 18px; color: var(--sz-ink); }
.sz-report-disclaimer { font-size: 11.5px; line-height: 1.5; color: var(--sz-muted); margin: 24px 0 12px; }
.sz-report-foot { font-size: 11px; color: var(--sz-muted); border-top: 1px solid var(--sz-line); padding-top: 10px; }
.sz-pdf-rendering .sz-report .sz-no-print { display: none !important; }
/* Durante la generazione del PDF la pagina è larga quanto un A4: una colonna per i dati (gli spaziatori
   anti-interruzione di html2pdf non devono finire in una cella della griglia) e schede prodotto più compatte. */
.sz-pdf-rendering .sz-summary-sections { display: block; }
.sz-pdf-rendering .sz-summary-sections section { margin-bottom: 4px; }
.sz-pdf-rendering .sz-product { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
.sz-pdf-rendering .sz-product-code { font-size: 17px; }
.sz-pdf-rendering .sz-kpi-value { font-size: 34px; }

/* Home */
.sz-hero--large { padding: 96px 20px 104px; }
.sz-home { display: grid; gap: 28px; margin-top: 48px; }
.sz-home-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; box-shadow: var(--sz-shadow); border-radius: var(--sz-radius); overflow: hidden; max-width: 1000px; margin: 0 auto; width: 100%; }
.sz-home-card picture { display: block; min-height: 260px; }
.sz-home-card img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.sz-home-card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.sz-home-card-body .sz-btn { align-self: flex-start; margin-top: 8px; }
.sz-home-card--alt picture { order: 2; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.sz-col-3 { grid-column: span 6; }
	.sz-col-4 { grid-column: span 6; }
	.sz-kpis { grid-template-columns: 1fr; }
	.sz-kpi { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
	.sz-kpi-value { grid-row: span 2; margin: 0; font-size: 32px; text-align: right; }
	.sz-kpi-label { grid-row: 1; grid-column: 1; }
	.sz-kpi-value { grid-row: 1 / 3; grid-column: 2; }
	.sz-kpi-secondary { grid-row: 3; grid-column: 2; text-align: right; margin: 0; }
	.sz-kpi-use { grid-row: 2 / 4; grid-column: 1; }
	.sz-footer .sz-container { grid-template-columns: 1fr 1fr; }
	.sz-summary-sections { grid-template-columns: 1fr; }
}

/* ---------- Telefono ---------- */
@media (max-width: 640px) {
	.sz-container { padding: 0 16px; }
	.sz-topbar .sz-container { gap: 14px; font-size: 12px; }
	.sz-topbar a.sz-topbar-brand { margin-right: -16px; font-size: 13px; }
	/* Barra in alto compatta: deve stare in 320 px senza tagliare nulla (controllo: tools/view-preview/misura-topbar.js) */
	.sz-topbar .sz-container { gap: 12px; font-size: 11px; letter-spacing: 0.02em; }
	.sz-topbar .sz-container > a:not(.sz-topbar-brand) > i { display: none; }
	.sz-topbar a.sz-topbar-brand { white-space: nowrap; padding: 0 8px; font-size: 12px; }
	.sz-topbar a.sz-topbar-brand img { width: 16px; margin-right: 6px; }
	/* Logo sopra, pulsanti dell'area utente su una riga a larghezza piena */
	.sz-header .sz-container { flex-wrap: wrap; min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.sz-header img { height: 42px; }
	.sz-header nav { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
	.sz-header nav .sz-btn { padding: 0 6px; }
	.sz-hero { padding: 32px 16px 36px; }
	.sz-hero p { display: none; }
	.sz-page-title { margin: 32px auto 20px; }
	.sz-card { padding: 24px 16px; border-radius: 0; box-shadow: none; }
	.sz-card--narrow { box-shadow: var(--sz-shadow); border-radius: var(--sz-radius); }
	.sz-section-title { font-size: 19px; }
	.sz-col-3, .sz-col-4, .sz-col-6 { grid-column: span 12; }
	.sz-grid { gap: 18px; }
	.sz-products { grid-template-columns: 1fr; }
	.sz-product { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px; }
	.sz-product-code { font-size: 18px; }
	.sz-mounting-groups { grid-template-columns: 1fr; gap: 16px; }
	/* Campi brevi (es. dimensioni) restano affiancati anche su telefono */
	.sz-grid--inline > .sz-col-4 { grid-column: span 4; }
	.sz-grid--inline { gap: 10px; }
	.sz-grid--inline .sz-unit .sz-input { padding-right: 40px; padding-left: 10px; }
	.sz-grid--inline .sz-unit::after { min-width: 34px; padding: 0 6px; font-size: 13px; }
	.sz-actions .sz-btn { width: 100%; min-width: 0; }
	.sz-kpi-value { font-size: 28px; }
	.sz-units { padding: 14px; }
	.sz-units-groups { flex-direction: column; gap: 12px; }
	.sz-seg { display: flex; }
	.sz-seg label { flex: 1; }
	.sz-seg span { min-height: 44px; padding: 4px 6px; }
	.sz-footer .sz-container { grid-template-columns: 1fr; gap: 24px; }
	.sz-hero--large { padding: 48px 16px 52px; }
	.sz-hero--large p { display: block; }
	.sz-home { margin-top: 28px; gap: 20px; }
	.sz-home-card { grid-template-columns: 1fr; }
	.sz-home-card img { min-height: 0; aspect-ratio: 16 / 9; }
	.sz-home-card--alt picture { order: 0; }
	.sz-home-card-body { padding: 24px 20px; }
	.sz-actions--row .sz-btn { width: 100%; }
	.sz-quick .sz-btn { flex: 1 1 100%; }
	.sz-dialog-body { padding: 16px; }
	.sz-report-head img { height: 40px; }
	.sz-report-toolbar span { width: 100%; }
	.sz-report-toolbar span .sz-btn { flex: 1; }
	.sz-td-actions .sz-btn + .sz-btn { margin-left: 0; }

	/* Storico: da tabella a schede */
	.sz-table thead { display: none; }
	.sz-table, .sz-table tbody, .sz-table tr, .sz-table td { display: block; width: 100%; }
	/* Scheda compatta: nome come titolo, data · ora · tipo su una riga, pulsanti sotto */
	.sz-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; border: 1px solid var(--sz-line); border-radius: var(--sz-radius); padding: 12px 14px; margin-bottom: 10px; }
	.sz-table td { width: auto; border: 0; padding: 2px 0; background: none !important; color: var(--sz-muted); font-size: 14px; }
	.sz-table td.sz-td-name { width: 100%; font-size: 16px; color: var(--sz-ink); }
	.sz-table td.sz-td-actions { width: 100%; display: flex; gap: 8px; padding-top: 10px; }
	.sz-table td.sz-td-actions .sz-btn { flex: 1; }
}

/* Telefoni stretti: "Fandis.com" e "Supporto" solo con l'icona (il testo resta per i lettori di schermo) */
@media (max-width: 400px) {
	.sz-topbar .sz-container > a:not(.sz-topbar-brand) > i { display: inline-block; font-size: 14px; }
	.sz-topbar .sz-topbar-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.sz-topbar .sz-container { gap: 14px; }
}

/* ---------- Stampa ---------- */
@media print {
	.sz-topbar, .sz-header, .sz-footer, .sz-footer-bottom, .sz-no-print, .sz-toasts, #iubenda-cs-banner, .iubenda-tp-btn { display: none !important; }
	.sz { background: #fff; }
	.sz-card { box-shadow: none; padding: 0; max-width: none; }
	.sz-report-page { padding: 0; }
	.sz-kpi, .sz-product, .sz-summary-sections section { break-inside: avoid; }
}

/* ---------- Area di amministrazione (statistiche, utenti) ---------- */
.sz .sz-btn--danger { background: var(--sz-danger); }
.sz .sz-btn--danger:hover { background: #9c2a27; }
.sz-card--wide { max-width: none; }
.sz-num { text-align: right; font-variant-numeric: tabular-nums; }
.sz-nowrap { white-space: nowrap; }
.sz-adm-muted { display: block; color: var(--sz-muted); font-size: 12px; font-weight: 400; }
.sz-adm-head { background: linear-gradient(90deg, var(--sz-action), var(--sz-navy)); color: #fff; padding: 28px 0 0; }
.sz-adm-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.sz-adm-title { margin: 2px 0 18px; font-family: var(--sz-heading); font-weight: 700; font-size: 30px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.sz-adm-tabs { display: flex; gap: 4px; }
.sz-adm-tabs a { padding: 12px 18px; border-radius: var(--sz-radius) var(--sz-radius) 0 0; color: #fff; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, 0.12); }
.sz-adm-tabs a:hover { background: rgba(255, 255, 255, 0.22); text-decoration: none; }
.sz-adm-tabs a[aria-current] { background: #f4f6f8; color: var(--sz-ink); }
.sz-adm { padding-top: 24px; }
/* Link semplici sullo sfondo grigio dell'area Admin: blu più scuro per il contrasto */
.sz-adm a:not([class]) { color: var(--sz-action-dark); }
body.sz main:has(.sz-adm) { background: #f4f6f8; padding-bottom: 8px; }
.sz-adm .sz-card { margin: 0 0 20px; padding: 26px 28px; }
.sz-adm-more { margin-top: 12px; text-align: center; }
.sz-adm .sz-section-title { font-size: 18px; margin-bottom: 6px; padding-bottom: 8px; border-bottom-width: 2px; }
.sz-adm-note { margin: 0 0 16px; color: var(--sz-muted); font-size: 14px; }
.sz-adm-back { margin: 0 0 14px; font-size: 14px; }
.sz-adm-spam { margin-bottom: 20px; border-left-color: var(--sz-warn-line); background: var(--sz-warn-bg); }
.sz-adm-spam p { margin: 0 0 10px; }

.sz-adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.sz-adm-segments { display: inline-flex; background: #fff; border: 1px solid var(--sz-line); border-radius: var(--sz-radius); padding: 3px; gap: 2px; }
.sz-adm-segments--wrap { flex-wrap: wrap; margin-bottom: 14px; }
.sz-adm-segment { padding: 7px 12px; border-radius: 3px; font-size: 14px; font-weight: 600; color: var(--sz-text); white-space: nowrap; }
.sz-adm-segment:hover { background: #f1f7fd; text-decoration: none; }
.sz-adm-segment[aria-current] { background: var(--sz-action); color: #fff; }
.sz-adm-count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.07); color: var(--sz-ink); font-size: 12px; text-align: center; }
.sz-adm-segment[aria-current] .sz-adm-count { background: rgba(0, 0, 0, 0.25); color: #fff; }
.sz-adm-range { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sz-adm-range label, .sz-adm-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sz-muted); }
.sz .sz-adm-range .sz-input, .sz .sz-adm-sort .sz-input { height: 36px; width: auto; padding: 0 8px; font-size: 14px; }
.sz-adm-export { margin-left: auto; }
.sz-adm-search { position: relative; flex: 1 1 280px; max-width: 460px; }
.sz-adm-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sz-muted); }
.sz .sz-adm-search .sz-input { height: 40px; padding-left: 36px; }
.sz-adm-period { margin: 0 0 16px; color: var(--sz-muted); font-size: 14px; }

.sz-adm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.sz-adm-kpi { background: #fff; border-radius: var(--sz-radius); box-shadow: var(--sz-shadow); padding: 16px 18px; border-top: 4px solid #c7ccd2; display: flex; flex-direction: column; gap: 4px; }
.sz-adm-kpi--blue { border-top-color: var(--sz-blue); }
.sz-adm-kpi--warn { border-top-color: var(--sz-warn-line); }
.sz-adm-kpi-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sz-muted); }
.sz-adm-kpi strong { font-family: var(--sz-heading); font-size: 34px; line-height: 1.1; color: var(--sz-ink); }
.sz-adm-kpi-sub { font-size: 13px; color: var(--sz-muted); }

.sz-adm-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; height: 240px; }
.sz-adm-chart-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--sz-muted); padding-bottom: 22px; text-align: right; }
.sz-adm-bars { display: flex; align-items: stretch; gap: 3px; border-left: 1px solid var(--sz-line); padding-left: 4px; overflow: hidden; }
.sz-adm-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.sz-adm-bar-stack { display: flex; flex-direction: column; min-height: 2px; border-radius: 3px 3px 0 0; overflow: hidden; }
.sz-adm-bar-stack span { display: block; min-height: 2px; }
.sz-adm-bar-label { height: 22px; padding-top: 4px; font-size: 11px; color: var(--sz-muted); text-align: center; white-space: nowrap; overflow: visible; border-top: 1px solid var(--sz-line); }
.sz-adm-bar:hover .sz-adm-bar-stack { filter: brightness(1.1); }
.sz-adm span.is-indoor { background: var(--sz-blue); }
.sz-adm span.is-outdoor { background: var(--sz-navy); }
.sz-adm span.is-legacy { background: #b9c0c7; }
.sz-adm-legend { list-style: none; display: flex; gap: 18px; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--sz-muted); }
.sz-adm-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.sz-adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sz-adm-span-2 { grid-column: 1 / -1; }
.sz-adm-table td { vertical-align: top; }
.sz-adm-rank { color: var(--sz-muted); width: 32px; }
.sz-adm-product { display: flex; align-items: center; gap: 12px; }
.sz-adm-product img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.sz-adm-product small { display: block; font-weight: 400; color: var(--sz-muted); font-size: 12px; }
/* la cella resta una cella di tabella (con display:flex non seguiva l'altezza della riga): il contenuto va in .sz-adm-meter-row */
.sz-adm-meter-cell { min-width: 160px; }
.sz-adm-meter-row { display: flex; align-items: center; gap: 10px; }
.sz-adm-meter { flex: 1 1 auto; height: 8px; background: #edf0f3; border-radius: 999px; overflow: hidden; min-width: 60px; }
.sz-adm-meter > span { display: block; height: 100%; background: var(--sz-blue); border-radius: 999px; }
.sz-adm-hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sz-adm-hbars--gap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sz-line); }
.sz-adm-hbars li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 14px; }
.sz-adm-hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-adm-hbar-value { text-align: right; font-weight: 700; color: var(--sz-ink); font-variant-numeric: tabular-nums; }
.sz-adm-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #edf0f3; margin-bottom: 16px; }
.sz-adm span.is-ok { background: var(--sz-go); }
.sz-adm span.is-muted { background: #b9c0c7; }
.sz-adm span.is-warn { background: var(--sz-warn-line); }
.sz-adm span.is-error { background: var(--sz-danger); }
.sz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.sz-adm-list { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.sz-adm-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--sz-line); }
.sz-adm-list dt { color: var(--sz-text); }
.sz-adm-list dd { margin: 0; font-weight: 700; color: var(--sz-ink); white-space: nowrap; }
.sz-adm-list dd small { font-weight: 400; color: var(--sz-muted); margin-left: 6px; }
.sz-adm-list .sz-adm-sub { padding-left: 18px; font-size: 13px; color: var(--sz-muted); }
.sz-adm-list .sz-adm-sub dt { color: var(--sz-muted); }

.sz-adm-status-wrap { display: inline-block; text-align: inherit; }
.sz-adm-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; white-space: nowrap; }
.sz-adm span.sz-adm-status.is-warn { color: #6b4e00; }
.sz-adm-page { padding: 8px 12px; color: var(--sz-muted); }
.sz-adm-user-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.sz-adm-user-name { margin: 0; font-family: var(--sz-heading); font-size: 26px; letter-spacing: 0.04em; color: var(--sz-ink); }
.sz-adm-user-meta { margin: 4px 0 10px; color: var(--sz-muted); font-size: 14px; }
.sz-adm-user-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sz-adm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; margin: 22px 0 14px; padding: 18px 0 0; border-top: 1px solid var(--sz-line); }
.sz-adm-facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sz-muted); }
.sz-adm-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--sz-ink); }
.sz-adm-log { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.sz-adm-log li { padding: 8px 0; border-bottom: 1px solid var(--sz-line); }
.sz-adm-log time { color: var(--sz-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.sz-adm-log small { display: inline; margin-left: 6px; }

@media (max-width: 1200px) {
	.sz-adm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sz-adm-grid { grid-template-columns: 1fr; }
	.sz-adm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sz-adm-export { margin-left: 0; }
}
@media (max-width: 640px) {
	.sz-adm-head { padding-top: 18px; }
	.sz-adm-title { font-size: 24px; margin-bottom: 12px; }
	.sz-adm-tabs a { flex: 1; text-align: center; padding: 10px 8px; }
	.sz-adm { padding-top: 16px; }
	.sz-adm .sz-card { padding: 20px 16px; margin-bottom: 14px; box-shadow: var(--sz-shadow); }
	.sz-adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sz-adm-kpi { padding: 12px 14px; }
	.sz-adm-kpi strong { font-size: 28px; }
	.sz-adm-segments { display: flex; width: 100%; overflow-x: auto; }
	.sz-adm-segments:not(.sz-adm-segments--wrap) .sz-adm-segment { flex: 1; text-align: center; padding: 8px 6px; }
	.sz-adm-range { width: 100%; }
	.sz-adm-range label { flex: 1; }
	.sz .sz-adm-range .sz-input { flex: 1; min-width: 0; }
	.sz-adm-search { max-width: none; flex-basis: 100%; }
	.sz-adm-toolbar > .sz-btn { flex: 1; }
	.sz-adm-chart { height: 180px; }
	.sz-adm-hbars li { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; font-size: 13px; }
	.sz-adm-facts { grid-template-columns: 1fr 1fr; }
	.sz-adm-user-actions { width: 100%; }
	.sz-adm-user-actions .sz-btn { flex: 1; }
	/* Tabelle a schede: etichetta davanti a ogni valore */
	.sz-adm-table td[data-label] { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: var(--sz-text); }
	.sz-adm-table td[data-label]::before { content: attr(data-label); color: var(--sz-muted); font-size: 13px; }
	.sz-adm-table td[data-label] .sz-adm-muted { display: inline; margin-left: 4px; }
	.sz-adm-table td.sz-adm-rank { display: none; }
	.sz-adm-bar-label--minor { visibility: hidden; }
	.sz-adm-meter-cell { min-width: 0; }
	.sz-adm-meter-cell .sz-adm-meter { max-width: 140px; margin-left: auto; }
	.sz-adm-meter-cell .sz-adm-meter-row { flex: 1 1 auto; }
}
@media print {
	.sz-adm-toolbar, .sz-adm-tabs, .sz-adm-user-actions, .sz-td-actions { display: none !important; }
}

/* =====================================================================
   Versione 1.3 (20/10/2026): home più moderna, menu, animazioni.
   Richiesta di Fabio: "un po' di animazioni al caricamento, home più moderna senza stravolgerla, menu meno grigio".
   ===================================================================== */

/* ---------- Menu: pulsanti "Accedi" con bordo e pulsanti chiari nella fascia ---------- */
.sz .sz-btn--outline { background: transparent; color: var(--sz-action); box-shadow: inset 0 0 0 1.5px var(--sz-action); }
.sz .sz-btn--outline:hover { background: var(--sz-action); color: #fff; }
.sz .sz-btn--light { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75); backdrop-filter: blur(4px); }
.sz .sz-btn--light:hover { background: #fff; color: var(--sz-navy); }

/* Menu a gruppi (utente collegato): ogni voce ha un aspetto legato al suo ruolo */
.sz-header nav { gap: 10px; align-items: center; }
.sz-nav-group { display: inline-flex; padding: 4px; gap: 2px; background: #eef4fa; border-radius: 999px; box-shadow: inset 0 0 0 1px #dfe9f4; }
.sz .sz-nav-seg { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 18px; border-radius: 999px;
	font-size: 14px; font-weight: 700; color: #4a5a6c; text-decoration: none; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.sz .sz-nav-seg i { font-size: 15px; }
.sz .sz-nav-seg:hover { color: var(--sz-action-dark); text-decoration: none; background: rgba(255, 255, 255, 0.6); }
.sz .sz-nav-seg[aria-current] { background: #fff; color: var(--sz-action-dark); box-shadow: 0 2px 8px rgba(31, 59, 87, 0.14); }
.sz .sz-nav-seg[aria-current] i { color: var(--sz-action); }
.sz .sz-nav-profile { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 4px; border-radius: 999px;
	font-size: 14px; font-weight: 600; color: var(--sz-ink); text-decoration: none; transition: background-color 0.2s; }
.sz-nav-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
	background: linear-gradient(135deg, var(--sz-blue), var(--sz-action)); color: #fff; font-size: 14px; transition: transform 0.25s; }
.sz .sz-nav-profile:hover { background: #f1f5f9; text-decoration: none; color: var(--sz-ink); }
.sz .sz-nav-profile:hover .sz-nav-avatar { transform: scale(1.06); }
.sz .sz-nav-profile[aria-current] { background: #e3effb; color: var(--sz-action-dark); }
.sz .sz-nav-admin { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 6px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--sz-navy); text-decoration: none; transition: background-color 0.2s, box-shadow 0.2s; }
.sz .sz-nav-admin:hover { background: #2b4f73; color: #fff; text-decoration: none; }
.sz .sz-nav-admin[aria-current] { box-shadow: 0 0 0 3px rgba(31, 59, 87, 0.22); }
.sz-nav-sep { width: 1px; height: 26px; background: var(--sz-line); margin: 0 2px; }
.sz .sz-nav-logout { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	color: var(--sz-muted); font-size: 17px; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.sz .sz-nav-logout:hover { background: #fdecea; color: var(--sz-danger); text-decoration: none; }
.sz-nav-logout-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Intestazione che resta in alto sugli schermi grandi, con ombra quando si scorre (classe da sizing.js) */
@media (min-width: 641px) {
	.sz-header { position: sticky; top: 0; z-index: 50; transition: box-shadow 0.25s; }
	.sz-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 59, 87, 0.1); }
}

/* ---------- Pulsanti: angoli più morbidi e leggero sollevamento ---------- */
.sz .sz-btn { border-radius: 6px; }
.sz .sz-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 59, 87, 0.18); }
.sz .sz-btn:not(:disabled):active { transform: translateY(0); box-shadow: none; }
.sz .sz-btn i.fa-arrow-right { transition: transform 0.25s; }
.sz .sz-btn:hover i.fa-arrow-right { transform: translateX(4px); }

/* ---------- Fascia della home ---------- */
.sz-hero--large { padding: 110px 20px 120px; }
.sz-hero--large::before { background: linear-gradient(100deg, rgba(16, 38, 68, 0.88) 0%, rgba(20, 45, 80, 0.62) 55%, rgba(20, 45, 80, 0.35) 100%); }
.sz-hero--large h1 { font-size: clamp(30px, 5.6vw, 52px); }
.sz-hero--large .sz-hero-bg img { object-position: 50% 15%; }   /* armadietto in alto non tagliato */
.sz-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.sz-hero-actions .sz-btn { min-height: 48px; padding: 0 24px; }

/* Animazioni all'apertura della pagina: la foto si avvicina, i testi salgono in sequenza (solo CSS, senza JavaScript) */
@keyframes sz-zoom-in { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes sz-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sz-hero-bg img { animation: sz-zoom-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sz-hero > h1 { animation: sz-rise 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sz-hero > .sz-hero-sub { animation: sz-rise 0.7s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sz-hero > p:not(.sz-hero-sub) { animation: sz-rise 0.7s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sz-hero > .sz-hero-actions { animation: sz-rise 0.7s 0.46s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Comparsa dei blocchi mentre entrano nello schermo: sizing.js aggiunge sz-reveal agli elementi e is-in quando sono visibili.
   Senza JavaScript la classe sz-reveal non c'è e tutto resta visibile. */
.sz-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--sz-delay, 0s); }
.sz-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Schede della home ---------- */
.sz-home-bg { background: linear-gradient(180deg, #eef4fa 0%, #f7fafd 55%, #fff 100%); padding: 8px 0 64px; }
.sz-home { margin-top: 48px; gap: 32px; }
.sz-home-card { border-radius: 14px; box-shadow: 0 10px 34px rgba(31, 59, 87, 0.09); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s; }
.sz-home-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(31, 59, 87, 0.15); }
.sz-home-card picture { overflow: hidden; }
.sz-home-card img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sz-home-card:hover img { transform: scale(1.04); }
.sz-home-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
	background: linear-gradient(135deg, #e3effb, #d2e6fa); color: var(--sz-action); font-size: 21px; }
.sz-home-card--alt .sz-home-icon { background: linear-gradient(135deg, #e6f4ea, #d3ecdb); color: var(--sz-go); }
.sz-home-card:hover .sz-btn i.fa-arrow-right { transform: translateX(4px); }

/* ---------- Telefono ---------- */
@media (max-width: 640px) {
	/* menu come una piccola barra di icone con la scritta sotto */
	.sz-header nav { display: flex; gap: 6px; align-items: center; }
	.sz-header nav > .sz-btn { flex: 1 1 0; }   /* Accedi e Registrati a metà larghezza ciascuno */
	.sz-nav-group { flex: 1 1 auto; }
	.sz .sz-nav-seg { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: 13px; }
	.sz .sz-nav-profile { padding: 0; min-height: 40px; }
	.sz .sz-nav-profile > span:not(.sz-nav-avatar) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sz .sz-nav-admin { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
	.sz .sz-nav-admin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sz-nav-sep { display: none; }
	.sz .sz-nav-logout { width: 36px; height: 36px; }
	.sz-hero--large { padding: 56px 16px 60px; }
	.sz-hero--large .sz-hero-bg img { object-position: 30% 50%; }   /* sul telefono la parte sfocata: l'armadietto finirebbe dietro il titolo */
	.sz-hero-actions { margin-top: 22px; }
	.sz-hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
	.sz-hero-actions .sz-btn { padding: 0 14px; }
	.sz-home-bg { padding-bottom: 36px; }
	.sz-home { margin-top: 28px; gap: 22px; }
	.sz-home-card:hover { transform: none; }
}

/* Chi ha chiesto al sistema di ridurre le animazioni le vede ferme */
@media (prefers-reduced-motion: reduce) {
	.sz-hero-bg img, .sz-hero > * { animation: none !important; }
	.sz-reveal { opacity: 1; transform: none; transition: none; }
	.sz-home-card, .sz-home-card img, .sz .sz-btn, .sz .sz-btn i { transition: none !important; }
}
@media print {
	.sz-reveal { opacity: 1 !important; transform: none !important; }
	.sz-hero-bg img, .sz-hero > * { animation: none !important; }
}

/* ---------- Area Admin: amministratori riconoscibili nell'elenco utenti (23/10/2026) ---------- */
.sz-adm-role { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 8px; border-radius: 4px; vertical-align: 2px;
	font-family: var(--sz-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
	color: #fff; background: var(--sz-navy); white-space: nowrap; }
.sz-adm-role i { font-size: 11px; }
.sz-adm-role--test { color: var(--sz-action-dark); background: #e3effb; box-shadow: inset 0 0 0 1px rgba(32, 119, 201, 0.28); }
.sz-adm-user-name .sz-adm-role { font-size: 12px; vertical-align: 5px; }
.sz-adm-table tr.is-admin td { background: #eef4fb; }
.sz-adm-table tr.is-admin td:first-child { box-shadow: inset 4px 0 0 var(--sz-navy); }
.sz-adm-table tr.is-admin-test td { background: #f6f9fd; }
.sz-adm-table tr.is-admin-test td:first-child { box-shadow: inset 4px 0 0 #9cc3ea; }
@media (max-width: 640px) {
	/* sul telefono ogni utente è una scheda: bordo e fondo sull'intera scheda */
	.sz-adm-table tr.is-admin { background: #eef4fb; border-color: #c9dbef; box-shadow: inset 4px 0 0 var(--sz-navy); }
	.sz-adm-table tr.is-admin-test { background: #f6f9fd; border-color: #d6e6f6; box-shadow: inset 4px 0 0 #9cc3ea; }
	.sz-adm-table tr.is-admin td:first-child, .sz-adm-table tr.is-admin-test td:first-child { box-shadow: none; }
}

/* ---------- Area Admin: approfondimento delle statistiche e pagina Calcoli (23/10/2026) ---------- */
/* riquadri numerici cliccabili */
a.sz-adm-kpi { text-decoration: none; color: inherit; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
a.sz-adm-kpi::after { content: "\2192"; position: absolute; right: 14px; top: 12px; font-size: 15px; color: var(--sz-muted); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
a.sz-adm-kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31, 59, 87, 0.14); }
a.sz-adm-kpi:hover::after { opacity: 1; transform: translateX(2px); }
/* barre del grafico: ogni intervallo porta ai suoi calcoli */
a.sz-adm-bar { text-decoration: none; color: inherit; cursor: pointer; }
a.sz-adm-bar:hover .sz-adm-bar-stack { filter: brightness(1.15); box-shadow: 0 0 0 2px rgba(32, 119, 201, 0.35); }
/* righe a barre orizzontali */
.sz-adm-hbars li:has(> .sz-adm-hbar-link) { display: block; }
.sz-adm-hbar-link { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 48px; align-items: center; gap: 10px; margin: -4px -8px; padding: 4px 8px; border-radius: 6px; color: inherit; text-decoration: none; transition: background-color 0.15s; }
.sz-adm-hbar-link:hover { background: #eef5fd; text-decoration: none; color: inherit; }
.sz-adm-hbar-link:hover .sz-adm-hbar-value { color: var(--sz-action-dark); }
/* esito della ricerca */
.sz-adm-list .sz-adm-list-link { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px 8px; margin: 0 -8px; border-bottom: 1px solid var(--sz-line); border-radius: 6px 6px 0 0; color: inherit; text-decoration: none; transition: background-color 0.15s; }
.sz-adm-list .sz-adm-list-link:hover { background: #eef5fd; text-decoration: none; color: inherit; }
.sz-adm-list-k { color: var(--sz-text); }
.sz-adm-list-v { font-weight: 700; color: var(--sz-ink); white-space: nowrap; }
.sz-adm-list-v small { font-weight: 400; color: var(--sz-muted); margin-left: 6px; }
.sz-adm-list .sz-adm-list-link.sz-adm-sub { padding-left: 26px; font-size: 13px; }
.sz-adm-list .sz-adm-sub .sz-adm-list-k, .sz-adm-list .sz-adm-sub .sz-adm-list-v { color: var(--sz-muted); }
/* numeri approfondibili nella tabella dei condizionatori */
.sz .sz-adm-drill { color: var(--sz-action-dark); text-decoration: none; border-bottom: 1px dashed rgba(26, 99, 166, 0.45); }
.sz .sz-adm-drill:hover { text-decoration: none; border-bottom-style: solid; }

/* pagina Calcoli */
.sz-adm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: 100%; }
.sz-adm-filters .sz-adm-search { flex: 1 1 280px; }
.sz-adm-check { margin: 0; font-size: 14px; }
.sz-adm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 13px; color: var(--sz-muted); }
.sz .sz-adm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 12px; border-radius: 999px; background: #e3effb; color: var(--sz-action-dark); font-weight: 600; text-decoration: none; }
.sz .sz-adm-chip:hover { background: #fdecea; color: var(--sz-danger); text-decoration: none; }
.sz .sz-adm-chip-reset { color: var(--sz-muted); }
.sz-adm-listhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sz-adm-listhead .sz-adm-note { margin: 0; }
@media (max-width: 640px) {
	.sz-adm-hbar-link { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; font-size: 13px; }
	a.sz-adm-kpi::after { display: none; }
}
.sz-adm-role--super { background: linear-gradient(135deg, #1f3b57, #2b5a87); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sz-adm-role--super i { color: #f0c24b; }
/* scheda Amministratori: indirizzi abilitati senza account */
.sz-adm-pending { margin-bottom: 20px; }
.sz-adm-pending-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sz-adm-pending-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; background: #f6f9fd; box-shadow: inset 4px 0 0 #9cc3ea; }
