:root {
	--blue: #0646d7;
	--blue-dark: #062d88;
	--blue-soft: #edf3ff;
	--ink: #0e1b3a;
	--muted: #5f6b82;
	--line: #dce3ef;
	--surface: #ffffff;
	--background: #f5f8fd;
	--header-background: #ffffff;
	--footer-background: #ffffff;
	--footer-text: #5f6b82;
	--danger: #a51d2d;
	--success: #0d8055;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--background);
	line-height: 1.5;
}
a { color: var(--blue); }
.site-header-shell { position: sticky; top: 0; z-index: 1000; }
.company-site-bar { min-height: 44px; padding: 0 clamp(20px, 5vw, 72px); color: white; background: #292929; }
.company-site-bar-inner { display: flex; justify-content: flex-end; width: min(1320px, 100%); min-height: 44px; margin: 0 auto; }
.company-site-bar a { display: inline-flex; align-items: center; min-width: 250px; padding: 8px 24px; color: white; border-left: 1px solid rgba(255, 255, 255, .24); border-right: 1px solid rgba(255, 255, 255, .24); font-weight: 550; text-decoration: none; }
.company-site-bar a:hover { background: rgba(255, 255, 255, .08); }
.site-header {
	min-height: 100px;
	padding: 18px clamp(20px, 5vw, 72px);
	background: var(--header-background);
	border-bottom: 1px solid var(--line);
}
.site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 4vw, 58px); align-items: center; width: min(1320px, 100%); min-height: 63px; margin: 0 auto; }
.brand { color: var(--ink); text-decoration: none; }
.brand-logo-link { display: flex; grid-column: 1; align-items: center; justify-self: start; min-width: 0; }
.brand-icon { display: grid; place-items: center; width: 42px; height: 48px; color: white; background: var(--blue); border-radius: 12px 12px 18px 18px; font-size: 21px; }
.brand-logo { display: block; width: auto; max-width: 230px; height: auto; max-height: 62px; object-fit: contain; }
.brand-company { grid-column: 2; justify-self: center; text-align: center; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.1; white-space: nowrap; }
.brand-portal-name { grid-column: 3; justify-self: end; color: var(--blue); text-align: right; font-size: clamp(20px, 2.2vw, 27px); font-weight: 600; line-height: 1.1; }
.page { flex: 1 0 auto; width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.site-footer { padding: 0 clamp(20px, 5vw, 72px); color: var(--footer-text); background: var(--footer-background); border-top: 1px solid var(--line); }
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 50px; align-items: center; width: min(1320px, 100%); margin: 0 auto; padding: 30px 0 18px; }
.site-footer-main { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; }
.site-footer-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 20px; }
.site-footer-main div > strong, .site-footer-main div > span { display: block; }
.site-footer-main div > strong { margin-bottom: 2px; color: inherit; font-size: 15px; }
.site-footer-main div > span { font-size: 13px; line-height: 1.45; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 24px; }
.site-footer a { color: var(--blue); font-weight: 650; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer-credit { grid-column: 1 / -1; padding-top: 15px; text-align: right; border-top: 1px solid var(--line); font-size: 12px; }
.site-footer-credit a { color: inherit; font-weight: 750; }
.card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 35px rgba(35, 57, 96, .08); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--blue); border-radius: 9px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue); background: white; }
.button-secondary:hover { background: color-mix(in srgb, var(--blue) 3%, white); }
.button-block { width: 100%; margin-top: 20px; }
.button.disabled { opacity: .45; pointer-events: none; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 650; text-decoration: none; }
.access-card label { display: block; margin: 22px 0 8px; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], textarea, .report-form select {
	width: 100%;
	padding: 13px 14px;
	color: var(--ink);
	background: white;
	border: 1px solid #bfc9da;
	border-radius: 8px;
	font: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, .report-form select:focus { outline: 3px solid rgba(6, 70, 215, .14); border-color: var(--blue); }
fieldset { margin: 28px 0 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; font-weight: 700; }
.counter { margin-top: 4px; color: var(--muted); text-align: right; font-size: 13px; }
.alert { margin: 0 0 22px; padding: 14px 16px; color: var(--danger); background: #fff1f3; border: 1px solid #f0b8c0; border-radius: 8px; }
.result-card { width: min(780px, 100%); margin: 0 auto; padding: clamp(30px, 4vw, 54px); text-align: center; }
.access-card { width: min(720px, 100%); margin: 0 auto; text-align: center; }
.access-card form { text-align: left; }
.success-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 22px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 34px; }
.result-card > h1 { margin: 0; font-size: clamp(27px, 4vw, 34px); line-height: 1.2; }
.result-introduction { max-width: 610px; margin: 16px auto 0; color: #3e4c65; line-height: 1.65; }
.key-box { margin: 30px 0 0; padding: 25px 34px; background: var(--blue-soft); border: 1px solid #9cb7ec; border-radius: 12px; }
.key-box h2 { margin: 0; font-size: 18px; }
.key-box p { margin: 5px 0 0; color: #526079; font-size: 14px; }
.key-box code { display: block; margin: 17px 0 14px; padding: 13px; color: var(--blue); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: clamp(18px, 4vw, 25px); font-weight: 800; letter-spacing: .14em; box-shadow: 0 3px 12px rgba(35, 57, 96, .05); }
.result-key-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-key-actions .button { gap: 9px; min-width: 0; }
.result-contact-reasons { margin-top: 25px; padding: 22px 0; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-contact-reasons h2 { margin: 0 0 14px; font-size: 15px; }
.result-contact-reasons ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.result-contact-reasons li { color: #46536a; font-size: 13px; }
.result-contact-reasons li i { margin-right: 9px; color: var(--blue); }
.result-confirmation { padding: 20px 0 2px; text-align: left; }
.confirmation { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0; cursor: pointer; }
.confirmation input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.confirmation strong, .confirmation small { display: block; }
.confirmation strong { color: #344159; font-size: 14px; }
.confirmation small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.result-card > .button-block { margin-top: 13px; }
.key-input { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
.content-stack { display: grid; gap: 16px; }
.report-details-page { padding-top: 2px; }
.report-logout-link { width: fit-content; margin: 0 0 6px 4px; }
.report-logout-link i { margin-right: 5px; }
.details-card, .messages-card { padding: 26px 28px; border-radius: 14px; }
.portal-card-heading { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 24px; line-height: 1.2; }
.portal-card-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; color: var(--blue); background: #e9f1ff; border-radius: 50%; font-size: 23px; }
.details-list { margin: 12px 0 0 58px; }
.details-list div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; color: #263550; }
.details-attachments { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.details-attachments a, .attachment-link { font-weight: 650; text-decoration: none; }
.details-attachments a i, .attachment-link i { margin-right: 7px; color: #6d7b91; }
.details-attachments a span { color: var(--muted); font-weight: 450; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; }
.status-received { color: #174c93; background: #edf5ff; border-color: #9fc2ed; }
.status-working { color: #915600; background: #fff6e8; border-color: #f2c87d; }
.status-closed { color: var(--success); background: #edf9f3; border-color: #9bd4bb; }
.messages-heading-row { display: flex; align-items: center; gap: 18px; }
.protected-label { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #38506d; font-size: 14px; font-weight: 550; }
.protected-label i { color: var(--success); font-size: 17px; }
.messages { margin: 14px 30px 14px 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.message { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.message:last-child { border-bottom: 0; }
.message-company, .message-reporter { background: white; }
.message-avatar { display: grid; place-items: center; width: 48px; height: 48px; color: var(--blue); background: #e9f1ff; border-radius: 50%; font-size: 23px; }
.message-body { min-width: 0; }
.message header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.message header strong { color: var(--ink); font-size: 14px; }
.message p { margin: 5px 0 0; color: #35425a; }
.message-rich-text { margin-top: 5px; color: #35425a; overflow-wrap: anywhere; }
.message-rich-text p { margin: 0 0 6px; }
.message-rich-text p:last-child { margin-bottom: 0; }
.message-rich-text ul, .message-rich-text ol { margin: 7px 0; padding-left: 24px; }
.message-rich-text blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); }
.message-rich-text h1, .message-rich-text h2, .message-rich-text h3, .message-rich-text h4 { margin: 9px 0 5px; font-size: 16px; line-height: 1.4; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment-link { display: inline-block; margin: 10px 12px 0 0; }
.empty-state { margin: 0; padding: 22px; color: var(--muted); text-align: center; }
.message-compose { margin: 0 30px 0 58px; }
.message-compose textarea { min-height: 78px; }
.message-compose-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 14px; }
.message-upload-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; color: var(--muted); font-size: 13px; }
.message-upload-button { gap: 8px; min-height: 43px; margin: 0; padding: 9px 18px; color: #344159; border-color: #c2ccdc; }
.message-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#message-selected-files { flex-basis: 100%; color: #42516a; overflow-wrap: anywhere; }
.message-compose-footer > .button-primary { flex: 0 0 auto; gap: 9px; min-width: 185px; }
.closed-conversation-note { margin: 16px 30px 0 58px; padding: 14px 16px; color: var(--muted); background: #f8faff; border-radius: 8px; }
.closed-conversation-note i { margin-right: 7px; color: var(--success); }

/* Pagina iniziale */
.home-page { width: 100%; }
.home-overview { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr); gap: clamp(60px, 9vw, 120px); align-items: start; margin-top: -56px; padding: 63px 6px 60px; background: white; box-shadow: 0 0 0 100vmax white; clip-path: inset(0 -100vmax); }
.home-main { min-width: 0; }
.home-main > h1 { max-width: 620px; margin: 0 0 25px; font-size: clamp(48px, 5vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
.home-introduction { max-width: 650px; margin: 0; color: #34415a; font-size: 16px; line-height: 1.55; }
.home-actions { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(340px, 1.15fr); gap: 20px; max-width: 690px; margin-top: 40px; }
.home-action {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 70px;
	padding: 14px 20px;
	border: 1px solid var(--blue);
	border-radius: 8px;
	text-decoration: none;
}
.home-action > i { font-size: 23px; }
.home-action span, .home-action strong, .home-action small { display: block; }
.home-action strong { font-size: 15px; }
.home-action small { margin-top: 3px; font-size: 11px; font-weight: 500; }
.home-action-primary { color: white; background: var(--blue); }
.home-action-secondary { color: var(--blue); background: white; }
.home-action-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.home-action-secondary:hover { background: color-mix(in srgb, var(--blue) 3%, white); }
.home-assurances { display: flex; align-items: center; max-width: 730px; margin-top: 45px; color: #34415a; }
.home-assurances span { display: flex; align-items: center; gap: 12px; padding: 0 28px; border-right: 1px solid var(--line); white-space: nowrap; }
.home-assurances span:first-child { padding-left: 0; }
.home-assurances span:last-child { padding-right: 0; border-right: 0; }
.home-assurances i { color: var(--blue); font-size: 29px; }
.home-process { padding-left: clamp(36px, 4vw, 58px); border-left: 1px solid var(--line); }
.home-process h2 { margin: 0 0 15px; font-size: 28px; }
.home-process ol { margin: 0; padding: 0; list-style: none; }
.home-process li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.home-process li:last-child { border-bottom: 0; }
.home-process li > span { color: var(--blue); font-size: 28px; font-weight: 800; line-height: 1.1; }
.home-process h3 { margin: 0 0 8px; font-size: 17px; }
.home-process p { margin: 0; color: #44526a; font-size: 14px; line-height: 1.55; }
.home-resources { position: relative; margin: 0; padding: 14px 0 0; }
.home-resources::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--line); box-shadow: 0 0 0 100vmax var(--line); clip-path: inset(0 -100vmax); }
.home-resources > h2 { width: min(1320px, 100%); margin: 0 auto 13px; font-size: 26px; }
.home-resource-list { width: min(1320px, 100%); margin: 0 auto; overflow: hidden; background: white; border: 1px solid #cfd8e4; border-radius: 7px; }
.home-resource-list details { border-bottom: 1px solid #cfd8e4; }
.home-resource-list details:last-child { border-bottom: 0; }
.home-resource-list summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 18px; align-items: center; min-height: 82px; padding: 13px 20px; cursor: pointer; list-style: none; }
.home-resource-list summary::-webkit-details-marker { display: none; }
.home-resource-list summary:hover { background: color-mix(in srgb, var(--blue) 3%, white); }
.home-resource-list summary:focus-visible { outline: 3px solid rgba(6, 70, 215, .18); outline-offset: -3px; }
.home-resource-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); background: #f0f3f7; border-radius: 6px; font-size: 24px; }
.home-resource-list summary strong, .home-resource-list summary small { display: block; }
.home-resource-list summary strong { font-size: 16px; }
.home-resource-list summary small { margin-top: 2px; color: #59667c; font-size: 14px; font-weight: 450; }
.home-resource-chevron { transition: transform .2s ease; }
.home-resource-list details[open] .home-resource-chevron { transform: rotate(180deg); }
.home-resource-content { padding: 0 72px 20px 86px; color: #4a5870; }
.home-resource-content p { margin: 0 0 8px; }
.home-resource-content a { font-weight: 700; }
.home-guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; margin: 5px 0 20px; padding: 0; list-style: none; counter-reset: home-guide-step; }
.home-guide-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; counter-increment: home-guide-step; }
.home-guide-steps li::before { content: counter(home-guide-step); display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--blue); border-radius: 50%; font-size: 12px; font-weight: 800; }
.home-guide-steps strong, .home-guide-steps small { display: block; }
.home-guide-steps strong { margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.home-guide-steps small { color: #59667c; font-size: 13px; line-height: 1.45; }
.home-guide-action { display: inline-flex; gap: 7px; align-items: center; }
.home-bottom-note {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	width: min(1320px, 100%);
	margin: 28px auto 0;
	padding: 19px 22px;
	color: #34415a;
	background: color-mix(in srgb, var(--blue) 3%, white);
	border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
	border-radius: 6px;
}
.home-bottom-note > i { color: var(--blue); font-size: 40px; }
.home-bottom-note p { margin: 0; font-size: 14px; line-height: 1.6; }
.home-bottom-note a { font-weight: 650; }

/* Modulo nuova segnalazione */
.report-layout { width: min(1100px, 100%); margin: 0 auto; }
.report-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-weight: 700; text-decoration: none; }
.report-intro { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.report-intro h1 { margin: 0; font-size: clamp(36px, 5vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.report-title-rule { width: 58px; height: 3px; margin: 19px auto 18px; background: var(--blue); border-radius: 20px; }
.report-intro p { margin: 0; color: #4e5b72; font-size: 16px; line-height: 1.65; }
.report-legal-notice { display: grid; grid-template-columns: 22px 1fr; gap: 11px; margin: 0 0 25px; padding: 14px 16px; color: #40506b; background: #f4f7fd; border: 1px solid #d7e0ef; border-radius: 9px; font-size: 13px; }
.report-legal-notice i { color: var(--blue); font-size: 18px; }
.report-legal-notice p { margin: 0; }
.report-legal-notice a { font-weight: 700; }
.report-reading-confirmation { margin: 0 0 25px; padding: 17px 19px; background: white; border: 1px solid #c8d4e7; border-radius: 10px; box-shadow: 0 4px 14px rgba(35, 57, 96, .04); }
.report-reading-confirmation label { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 !important; cursor: pointer; }
.report-reading-confirmation input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.report-reading-confirmation strong, .report-reading-confirmation small { display: block; }
.report-reading-confirmation strong { color: var(--ink); font-size: 15px; line-height: 1.4; }
.report-reading-confirmation small { margin-top: 3px; color: #56647b; font-size: 13px; font-weight: 450; line-height: 1.45; }
.report-reading-confirmation p { margin: 9px 0 0 34px; color: #68768d; font-size: 12px; }
.report-gated-content { min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity .2s ease, filter .2s ease; }
.report-gated-content.is-locked { opacity: .38; filter: grayscale(.25) blur(1.5px); pointer-events: none; user-select: none; }
.report-form label, .report-form legend { display: block; font-size: 15px; font-weight: 750; }
.report-form label { margin: 22px 0 8px; }
.report-form .report-section-title { color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 601; line-height: 1.4; }
.report-form legend.report-section-title { margin-bottom: 0; }
.report-form h3.report-section-title { margin: 0; }
.report-form-section { padding: 26px; background: #fbfcff; border: 1px solid var(--line); border-radius: 12px; }
.report-form-section-details { margin-top: 26px; background: white; }
.report-part-heading { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; margin: -26px -26px 26px; padding: 20px 26px; background: #f1f5fd; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.report-part-heading > span { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 4px 10px; color: white; background: var(--blue); border-radius: 99px; font-size: 12px; font-weight: 800; }
.report-part-heading h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.report-part-heading p { margin: 4px 0 0; color: #5c6980; font-size: 13px; }
.report-field { min-width: 0; margin: 0 0 25px; }
.report-field > .report-section-title { margin: 0 0 8px; }
.required { color: #d2263d; }
.optional { color: #69768c; font-size: 12px; font-weight: 500; }
.field-help { margin: 4px 0 10px; color: #66748c; font-size: 13px; }
.report-mode-fieldset { margin-top: 24px; }
.report-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.report-mode-choice {
	position: relative;
	display: grid !important;
	grid-template-columns: 20px 58px 1fr;
	gap: 14px;
	align-items: center;
	min-height: 120px;
	margin: 0 !important;
	padding: 20px 21px;
	border: 1px solid #bfc9da;
	border-radius: 9px;
	cursor: pointer;
}
.report-mode-choice:hover { background: color-mix(in srgb, var(--blue) 3%, white); }
.report-mode-choice:has(input:checked) { padding: 19px 20px; background: #fbfdff; border: 2px solid var(--blue); }
.report-mode-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.report-mode-radio { align-self: start; width: 17px; height: 17px; margin-top: 3px; background: white; border: 1px solid #aebbd0; border-radius: 50%; }
.report-mode-choice input:checked + .report-mode-radio { background: var(--blue); border: 5px solid var(--blue); box-shadow: inset 0 0 0 2px white; }
.report-mode-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--blue); background: #e9f1ff; border-radius: 50%; font-size: 27px; }
.report-mode-text strong, .report-mode-text small { display: block; }
.report-mode-text strong { margin-bottom: 5px; color: var(--ink); font-size: 15px; }
.report-mode-text small { color: #57647a; font-size: 13px; font-weight: 450; line-height: 1.45; }
.report-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 0; }
.report-details-grid label { margin-top: 0; }
.report-form-section-details > label[for="allegati"] { margin-top: 30px; }
.report-event-fields label + input, .report-event-fields label + .input-with-icon { margin-bottom: 22px; }
.textarea-counter-wrap { position: relative; }
.textarea-counter-wrap textarea { min-height: 140px; padding-bottom: 30px; }
.textarea-counter-wrap .counter { position: absolute; right: 13px; bottom: 10px; margin: 0; }
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 42px; }
.input-with-icon > i { position: absolute; top: 50%; right: 14px; color: #7b89a0; transform: translateY(-50%); pointer-events: none; }
.report-identity-fields { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.report-identity-fields.hidden { display: none; }
.report-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.report-contact-grid label { margin-top: 7px; color: #657187; font-size: 13px; font-weight: 500; }
.report-upload-box {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-height: 96px;
	margin-top: 8px !important;
	padding: 18px;
	color: var(--blue);
	text-align: left;
	border: 1px dashed #7da0e5;
	border-radius: 9px;
	cursor: pointer;
}
.report-upload-box:hover { background: color-mix(in srgb, var(--blue) 3%, white); }
.report-upload-box.drag-over { background: var(--blue-soft); border-style: solid; }
.report-upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.report-upload-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; background: #e7efff; border-radius: 50%; font-size: 28px; }
.report-upload-box strong, .report-upload-box small, .report-upload-box em { display: block; }
.report-upload-box small { margin-top: 4px; color: #6a778c; font-size: 12px; font-weight: 450; }
.report-upload-box em { margin-top: 5px; color: #38465f; font-size: 12px; font-style: normal; font-weight: 500; }
.file-selection-error { min-height: 0; margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.file-selection-error:empty { display: none; }
.report-selected-files { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.report-selected-files[hidden] { display: none; }
.report-selected-files li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; background: #f8faff; border: 1px solid var(--line); border-radius: 8px; }
.report-selected-file-info { display: grid; min-width: 0; }
.report-selected-file-info strong { overflow: hidden; color: #263550; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.report-selected-file-info small { color: #6a778c; font-size: 12px; }
.report-remove-file { flex: 0 0 auto; padding: 5px 8px; color: var(--danger); background: white; border: 1px solid #e4abb4; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.report-remove-file:hover { background: #fff1f3; }
.report-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 20px 26px; background: #fbfcff; border: 1px solid var(--line); border-radius: 12px; }
.report-security-note { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: #35425a; }
.report-security-note > i { color: var(--blue); font-size: 22px; }
.report-security-note strong, .report-security-note small { display: block; }
.report-security-note strong { font-size: 12px; }
.report-security-note small { max-width: 300px; margin-top: 2px; color: #657187; font-size: 11px; line-height: 1.35; }
.report-form-actions { display: flex; gap: 14px; }
.report-form-actions .button { min-width: 170px; }
.report-form-actions .button-primary { gap: 9px; }

/* Informazioni legali */
.legal-page { width: min(960px, 100%); margin: 0 auto; }
.legal-intro { margin-bottom: 22px; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; font-weight: 700; text-decoration: none; }
.legal-intro h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -.025em; }
.legal-intro p { max-width: 820px; margin: 0; color: #46546d; }
.legal-card { padding: clamp(25px, 5vw, 46px); }
.legal-card h2 { margin: 32px 0 10px; font-size: 22px; line-height: 1.25; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card h3 { margin: 22px 0 8px; font-size: 17px; }
.legal-card p { margin: 0 0 12px; color: #35435c; }
.legal-card ul, .legal-card ol { display: grid; gap: 8px; margin: 10px 0 15px; padding-left: 24px; color: #35435c; }
.legal-card address { margin: 12px 0; color: #35435c; font-style: normal; }
.legal-warning { padding: 15px 17px; color: #624800; background: #fff8e8; border: 1px solid #ead29a; border-radius: 8px; }

@media (max-width: 900px) {
	.home-overview { grid-template-columns: 1fr; gap: 15px; }
	.home-process { margin-top: 30px; padding-left: 0; border-left: 0; }
	.details-list, .messages, .message-compose, .closed-conversation-note { margin-right: 0; margin-left: 0; }
}
@media (max-width: 620px) {
	.page { width: min(100% - 24px, 1320px); padding-top: 30px; }
	.site-header { min-height: 76px; padding: 12px; }
	.company-site-bar { min-height: 38px; padding: 0 12px; }
	.company-site-bar-inner { min-height: 38px; }
	.company-site-bar a { justify-content: flex-end; min-width: 0; padding: 7px 12px; border-left: 0; border-right: 0; font-size: 13px; }
	.site-header-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 51px; }
	.brand-logo { max-width: 145px; max-height: 50px; }
	.brand-company { display: none; }
	.brand-portal-name { grid-column: 2; font-size: 17px; overflow-wrap: anywhere; }
	.site-footer { padding: 0 18px; }
	.site-footer-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
	.site-footer-main { align-items: start; }
	.site-footer nav { justify-content: flex-start; }
	.site-footer-credit { grid-column: 1; text-align: left; }
	.result-key-actions { grid-template-columns: 1fr; }
	.details-list div { grid-template-columns: 1fr; gap: 4px; }
	.details-card, .messages-card { padding: 20px 16px; }
	.portal-card-heading { font-size: 21px; }
	.portal-card-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 20px; }
	.messages-heading-row { align-items: flex-start; flex-direction: column; gap: 8px; }
	.protected-label { margin-left: 56px; }
	.message { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 14px 12px; }
	.message-avatar { width: 40px; height: 40px; font-size: 19px; }
	.message header { flex-direction: column; gap: 3px; }
	.message-compose-footer { align-items: stretch; flex-direction: column; }
	.message-compose-footer > .button-primary { width: 100%; }
	.home-overview { margin-top: -30px; padding: 37px 0 60px; }
	.home-main > h1 { font-size: 43px; }
	.home-introduction br { display: none; }
	.home-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
	.home-action { min-height: 58px; padding: 13px 18px; }
	.home-assurances { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 30px; }
	.home-assurances span { width: 100%; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
	.home-assurances span:last-child { padding-bottom: 0; border-bottom: 0; }
	.home-process { margin-top: 43px; }
	.home-resource-list summary { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 12px; padding: 12px; }
	.home-resource-icon { width: 42px; height: 42px; font-size: 21px; }
	.home-resource-list summary small { font-size: 12px; line-height: 1.4; }
	.home-resource-content { padding: 0 20px 18px 66px; font-size: 13px; }
	.home-guide-steps { grid-template-columns: 1fr; gap: 16px; }
	.home-bottom-note { grid-template-columns: 34px minmax(0, 1fr); align-items: start; padding: 16px; }
	.home-bottom-note > i { font-size: 31px; }
	.report-mode-grid, .report-details-grid, .report-contact-grid { grid-template-columns: 1fr; }
	.report-details-grid { gap: 22px; }
	.report-form-section { padding: 18px; }
	.report-part-heading { grid-template-columns: 1fr; gap: 9px; margin: -18px -18px 22px; padding: 17px 18px; }
	.report-part-heading > span { width: fit-content; }
	.report-form-footer, .report-form-actions { align-items: stretch; flex-direction: column; }
	.report-form-footer { padding: 20px 18px; }
	.report-form-actions .button { width: 100%; }
	.report-mode-choice { grid-template-columns: 18px 50px 1fr; padding: 17px; }
	.report-mode-icon { width: 50px; height: 50px; }
}
