:root {
    --navy: #102d3c;
    --navy-deep: #0c2330;
    --blue: #116b70;
    --teal: #75d5c0;
    --ink: #203c4b;
    --muted: #6c7e89;
    --line: #e2e9ed;
    --surface: #f3f6f8;
    --sidebar-width: 250px;
    --shadow: 0 4px 24px rgba(19, 46, 60, .035);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--surface); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); transition: color .15s, background .15s, box-shadow .15s; }
a:hover { color: #094a50; }
h1, h2, h3, p { color: inherit; }
h1 { font-size: 30px; letter-spacing: -.9px; line-height: 1.2; font-weight: 650; margin: 0 0 20px; }
h2 { font-size: 18px; letter-spacing: -.3px; font-weight: 650; margin-bottom: 22px; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #339b96; outline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; font-size: 25px; line-height: 1.15; letter-spacing: -.6px; font-weight: 650; text-decoration: none !important; }
.brand:hover { color: #fff; }
.brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2.7px; color: #9eb9c6; margin-top: 7px; }
.brand-mark { width: 43px; height: 43px; padding: 7px; background: #ffffff0c; border: 1px solid #ffffff1c; border-radius: 12px; color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.signal-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 8px; box-shadow: 0 0 0 4px #75d5c010; flex-shrink: 0; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 2px; font-weight: 650; margin-bottom: 24px; }
/* Accesso */
.auth-page { min-height: 100vh; background: #fafbfc; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-story { background: radial-gradient(ellipse at 80% 85%, #1c555b66, transparent 65%), linear-gradient(145deg, #102d3c, #0c2533); color: #fff; padding: 48px 64px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-story::before { content: ''; position: absolute; width: 700px; height: 700px; border: 1px solid #ffffff05; border-radius: 50%; top: -470px; left: -190px; pointer-events: none; }
.auth-story .brand { position: relative; z-index: 1; }
.auth-story-copy { margin-top: clamp(70px, 13vh, 160px); position: relative; z-index: 1; }
.auth-story-copy .eyebrow { color: #96c6c3; }
.auth-story-copy h2 { font-size: clamp(32px, 3.2vw, 49px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.18; margin-bottom: 25px; }
.auth-story-copy h2 span { color: var(--teal); }
.auth-story-copy p { font-size: 15px; line-height: 1.9; color: #a8c1cc; margin: 0; }
.nautical-art { width: min(110%, 640px); margin: 10px -20px 18px; flex: 1; display: flex; align-items: flex-end; min-height: 200px; }
.nautical-art svg { width: 100%; max-height: 295px; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: #9cb7c2; letter-spacing: .1px; border-top: 1px solid #ffffff10; padding-top: 23px; }
.auth-story-footer > span:last-child { letter-spacing: 1px; white-space: nowrap; }
.auth-content { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 64px 48px 86px; min-width: 0; }
.auth-card { width: 380px; max-width: 100%; }
.auth-kicker { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: var(--blue); margin-bottom: 26px; }
.auth-kicker .signal-dot { background: var(--blue); }
.auth-card h1 { font-size: 35px; letter-spacing: -1.15px; margin: 0 0 12px; }
.auth-description { color: var(--muted); margin-bottom: 35px; font-size: 14px; line-height: 1.7; }
.auth-card .form-group { margin-bottom: 22px; }
.auth-card .form-control { height: 50px; background: #fff; }
.auth-card .btn-block { width: 100%; height: 50px; margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 0 20px; }
.auth-card .btn-block .la { font-size: 19px; }
.recovery { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; font-size: 13px; }
.recovery summary { cursor: pointer; color: var(--muted); text-align: center; list-style: none; }
.recovery summary::marker { content: ''; }
.recovery summary:hover { color: var(--blue); }
.recovery form { margin-top: 24px; }
.auth-footer { position: absolute; bottom: 30px; font-size: 11px; color: #84939d; letter-spacing: .15px; }
.auth-footer span { padding: 0 10px; color: #b6c3cc; }
/* Struttura del gestionale */
.app-header { height: 86px; margin-left: var(--sidebar-width); display: flex; align-items: center; gap: 24px; padding: 0 38px; border-bottom: 1px solid var(--line); background: #fff; }
.header-context { margin-right: auto; }
.header-context > span { display: block; color: #899ba5; font-size: 9px; letter-spacing: 1.7px; font-weight: 650; margin-bottom: 5px; }
.header-context strong { font-size: 14px; font-weight: 600; }
.header-date { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; padding-right: 22px; border-right: 1px solid var(--line); }
.header-date .la { font-size: 18px; }
.user-profile { display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e5f2ee; color: #21685f; font-size: 14px; font-weight: 650; }
.user-name { font-size: 12px; font-weight: 600; }
.user-name small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 3px; text-transform: capitalize; }
.logout-button, .menu-toggle { border: 1px solid var(--line); background: #fff; color: #6f8390; border-radius: 8px; height: 34px; width: 34px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.logout-button .la, .menu-toggle .la { font-size: 19px; }
.logout-button:hover { background: #f6f8fa; color: var(--ink); }
.menu-toggle { display: none; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-width); background: linear-gradient(175deg, var(--navy), var(--navy-deep)); padding: 35px 20px 20px; display: flex; flex-direction: column; overflow-y: auto; z-index: 50; scrollbar-width: thin; scrollbar-color: #31515f transparent; }
.sidebar .brand { padding: 0 9px; margin-bottom: 36px; }
.new-practice { display: flex; gap: 10px; align-items: center; justify-content: center; color: #102f37; background: var(--teal); border-radius: 9px; padding: 13px 10px; text-decoration: none !important; font-size: 12px; font-weight: 650; margin-bottom: 30px; box-shadow: 0 4px 18px #00000010; }
.new-practice .la { font-size: 17px; }
.new-practice:hover { color: #09282e; background: #9ae6d5; }
.nav-section-label { font-size: 9px; letter-spacing: 1.6px; color: #76919e; padding: 0 14px; margin: 0 0 10px; font-weight: 600; }
.nav-links { margin-bottom: 26px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 12px; color: #b4c6d0; border-radius: 8px; padding: 11px 14px; text-decoration: none; margin: 3px 0; font-size: 12px; min-height: 41px; }
.sidebar .nav-link .la { font-size: 19px; width: 21px; text-align: center; color: #86a5b5; }
.sidebar .nav-link:hover { color: white; background: #ffffff07; }
.sidebar .nav-link.active { color: #d9fff4; background: #7fdbc113; box-shadow: inset 2px 0 var(--teal); font-weight: 600; }
.sidebar .nav-link.active .la { color: var(--teal); }
.nav-active-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); margin-left: auto; }
.sidebar-footer { border-top: 1px solid #ffffff0c; padding: 23px 9px 0; margin-top: auto; font-size: 10px; line-height: 1.7; color: #9ab4c0; }
.sidebar-footer small { display: block; font-size: 8px; letter-spacing: 1.5px; color: #77929f; margin-top: 13px; padding-left: 14px; }
.main-content { margin-left: var(--sidebar-width); padding: 38px; min-height: calc(100vh - 86px); min-width: 0; }
.workspace-footer { display: flex; justify-content: space-between; color: #8c9aa5; font-size: 10px; padding: 8px 0 0; gap: 15px; }
.footer-divider { padding: 0 9px; color: #bcc9d1; }
.skip-link { position: fixed; top: -80px; left: 270px; background: #fff; padding: 12px 20px; z-index: 100; }
.skip-link:focus { top: 10px; }
.nav-backdrop[hidden] { display: none; }
/* Pagine e moduli */
.page-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.page-heading h1 { margin: 0 auto 0 0; }
.heading-copy { margin-right: auto; }
.heading-copy .eyebrow { font-size: 9px; letter-spacing: 1.6px; color: #879aa5; margin-bottom: 10px; }
.heading-copy h1 { margin-bottom: 9px; }
.page-description { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.7; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow); }
.filter-grid, .field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.filter-grid { align-items: end; background: #fff; padding: 22px 26px; }
.filter-grid .btn { padding: 10px 16px; }
.filter-grid > div:last-child { display: flex; gap: 6px; align-items: center; }
label { display: block; font-size: 12px; font-weight: 600; color: #4e6472; margin-bottom: 8px; }
.form-control { display: block; width: 100%; border: 1px solid #dbe4e9; background-color: #fcfdfe; border-radius: 7px; color: var(--ink); font-size: 13px; height: 42px; padding: 10px 12px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.form-control::placeholder { color: #9cabb4; }
.form-control:focus { border-color: #409b93; box-shadow: 0 0 0 3px #409b9312; background: #fff; }
select.form-control { padding-right: 26px; }
.form-control-sm { height: 34px; font-size: 11px; }
.field-grid .form-group { margin-bottom: 0; min-width: 0; }
.field-grid textarea { min-height: 96px; height: auto; line-height: 1.7; resize: vertical; }
.form-control:disabled, fieldset:disabled .form-control { background: #f5f7f9; color: #73818a; border-color: #e5eaee; opacity: 1; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.btn { font-size: 12px; font-weight: 600; border-radius: 7px; padding: 11px 18px; line-height: 1.35; border-width: 1px; border-style: solid; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:focus { box-shadow: 0 0 0 3px #409b9320; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 8px #116b7010; }
.btn-primary:hover, .btn-primary:active, .btn-primary:not(:disabled):not(.disabled):active { background: #0a565b; border-color: #0a565b; }
.btn-outline-primary { color: var(--blue); border-color: #b5d2d1; background: #fff; }
.btn-outline-primary:hover { background: #edf7f4; border-color: #8abbb5; color: var(--blue); }
.btn-outline-secondary { color: #5a707e; border-color: #d9e2e8; background: #fff; }
.btn-outline-secondary:hover, .btn-light:hover { color: var(--ink); border-color: #bfccd5; background: #f3f6f8; }
.btn-light { color: #657d8b; border-color: transparent; background: #f0f4f6; }
.btn-outline-danger { color: #ae6666; border-color: #ead4d4; }
.btn-outline-danger:hover { color: #a64545; background: #fcf1f1; border-color: #d8abab; }
.btn-sm { font-size: 10px; padding: 7px 11px; }
.record-section { margin: 24px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.record-section summary { font-size: 13px; font-weight: 600; cursor: pointer; padding: 19px 20px; background: #f8fafb; color: #395866; margin: 0; }
.record-section[open] summary { border-bottom: 1px solid var(--line); }
.record-section > fieldset, .record-section > .field-grid { padding: 0 20px 22px; }
.record-section > .field-grid { padding-top: 22px; }
.inline-toggle { display: flex; align-items: center; gap: 9px; margin: 18px 20px; font-weight: 500; }
input[type='checkbox'] { accent-color: var(--blue); width: 15px; height: 15px; vertical-align: middle; cursor: pointer; flex-shrink: 0; }
.permissions { columns: 2; column-gap: 40px; }
.permissions label { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 6px; background: #f7f9fa; margin: 0 0 9px; break-inside: avoid; font-weight: 500; }
.alert { border-radius: 9px; font-size: 12px; line-height: 1.7; padding: 15px 20px; border: 1px solid; }
.alert-success { color: #23685a; background: #eaf6f0; border-color: #cce8db; }
.alert-danger { color: #9a4c4c; background: #fcf1f1; border-color: #efd8d8; }
.text-muted { color: var(--muted) !important; }
/* Elenchi */
.records-panel { padding: 0; overflow: hidden; }
.table-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); gap: 15px; }
.table-heading h2 { font-size: 13px; margin: 0; letter-spacing: 0; }
.result-count { display: inline-flex; align-items: center; gap: 7px; color: #68818e; font-size: 10px; background: #f2f6f8; padding: 5px 9px; border-radius: 5px; }
.result-count strong { color: #345563; font-weight: 650; }
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 0; color: var(--ink); text-align: left; }
.table th { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: #738996; background: #f8fafb; border-top: 0; border-bottom: 1px solid var(--line); padding: 15px 20px; font-weight: 650; white-space: nowrap; }
.table td { vertical-align: middle; border-top: 1px solid #eef2f5; padding: 17px 20px; font-size: 13px; line-height: 1.6; }
.table td:first-child { font-weight: 600; color: #274856; }
.table-hover tbody tr:hover { background: #f5faf9; }
.table-actions { display: flex; gap: 7px; white-space: nowrap; }
.table-actions form { display: inline; }
.table-actions .btn-outline-primary { border-color: transparent; background: #eef6f5; }
.table-actions .btn-outline-danger { border-color: transparent; background: transparent; }
.empty-state { text-align: center; padding: 60px 24px !important; color: var(--muted) !important; font-weight: 400 !important; }
.empty-state .la { display: block; font-size: 30px; color: #9ab7bc; margin-bottom: 14px; }
.empty-state strong { display: block; font-size: 13px; color: #4b6877; margin-bottom: 7px; }
.table-footer { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 11px; }
.pagination { margin: 18px 0 0; gap: 4px; }
.table-footer .pagination { margin: 0; }
.page-link { border-radius: 6px !important; border: 1px solid #e3eaee; color: #6b818f; padding: 6px 10px; font-size: 11px; background: #fff; }
.page-item.active .page-link { background: var(--blue); border-color: var(--blue); }
.page-item.disabled .page-link { color: #afbdc6; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; padding: 4px 9px; border-radius: 5px; color: #607987; background: #edf2f5; white-space: nowrap; }
.status-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-badge.is-open { background: #edf5fb; color: #477f9f; }
.status-badge.is-working { background: #fff5e4; color: #947133; }
.status-badge.is-closed { background: #eaf5ee; color: #42765a; }
@media (min-width: 1800px) { .main-content { padding-left: 64px; padding-right: 64px; } }
@media (max-height: 780px) and (min-width: 901px) { .sidebar { padding-top: 24px; } .sidebar .brand { margin-bottom: 24px; } .new-practice { margin-bottom: 23px; } .sidebar .nav-link { padding: 9px 14px; min-height: 36px; } .nav-links { margin-bottom: 16px; } .sidebar-footer { padding-top: 16px; } .auth-story-copy { margin-top: 65px; } }
@media (max-width: 1100px) { :root { --sidebar-width: 220px; } .sidebar { padding-left: 14px; padding-right: 14px; } .app-header { padding: 0 26px; gap: 17px; } .header-date { display: none; } .main-content { padding: 28px 26px; } .auth-story { padding: 40px 38px 28px; } .auth-story-footer > span:last-child { display: none; } .auth-content { padding-left: 38px; padding-right: 38px; } }
@media (max-width: 900px) { .app-header { margin-left: 0; height: 72px; padding: 0 22px; } .menu-toggle { display: grid; } .main-content { margin-left: 0; min-height: calc(100vh - 72px); } .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 250px; } .nav-open .sidebar { transform: translateX(0); } .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: #0d263966; backdrop-filter: blur(2px); } .nav-open { overflow: hidden; } .sidebar-footer { margin-top: 26px; } .skip-link { left: 20px; } }
@media (max-width: 700px) { .auth-shell { grid-template-columns: 1fr; } .auth-story { padding: 26px 28px 30px; min-height: auto; } .auth-story .brand { font-size: 22px; } .auth-story-copy { margin-top: 32px; } .auth-story-copy .eyebrow { font-size: 8px; margin-bottom: 16px; } .auth-story-copy h2 { font-size: 32px; letter-spacing: -1px; margin-bottom: 0; } .auth-story-copy p, .auth-story-footer, .nautical-art { display: none; } .auth-content { padding: 40px 28px 75px; } .auth-card { width: 400px; } .auth-card h1 { font-size: 29px; } .auth-kicker { margin-bottom: 20px; } .auth-description { margin-bottom: 26px; } .auth-footer { bottom: 22px; } }
@media (max-width: 600px) { .main-content { padding: 25px 16px; } .app-header { padding: 0 16px; gap: 13px; } .header-context > span { font-size: 8px; } .header-context strong { font-size: 12px; } .user-name { display: none; } .user-avatar { width: 32px; height: 32px; } .panel { padding: 20px; border-radius: 10px; } .records-panel { padding: 0; } .page-heading { gap: 8px; margin-bottom: 22px; } .page-heading h1 { font-size: 25px; } .heading-copy { width: 100%; margin-bottom: 8px; } .page-description { font-size: 11px; } .field-grid, .filter-grid { grid-template-columns: 1fr; gap: 17px; } .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-grid > div:first-child, .filter-grid > div:last-child { grid-column: 1 / -1; } .permissions { columns: 1; } .table-heading { padding: 18px 20px; } .table td, .table th { padding-left: 16px; padding-right: 16px; } .table-footer { padding: 16px 20px; flex-wrap: wrap; } .workspace-footer { font-size: 9px; } .workspace-footer > span:last-child { display: none; } .record-section summary { padding: 17px 16px; } .record-section > fieldset, .record-section > .field-grid { padding-left: 16px; padding-right: 16px; } .inline-toggle { margin-left: 16px; margin-right: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.form-group { margin-bottom: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.ml-2 { margin-left: 8px !important; }
.text-danger { color: #aa5252 !important; }
.btn { text-decoration: none !important; cursor: pointer; }
.pagination { display: flex; list-style: none; padding: 0; }
.table-footer nav { margin-left: auto; }
.table-footer nav > div:first-child { display: none; }
.table-footer nav > div:last-child { display: flex; align-items: center; gap: 20px; }
.table-footer nav > div:last-child > div:first-child { display: none; }
.auth-card form { min-width: 0; }
@media (max-width: 700px) { .auth-shell { grid-template-columns: minmax(0, 1fr); } }
@font-face { font-family: 'NauticaIcons'; src: url('../../vendors/base/fonts/line-awesome/line-awesome.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: block; }
.la { font-family: 'NauticaIcons' !important; }
.mb-3 { margin-bottom: 16px !important; }
.btn-danger { background: #a94d4d; border-color: #a94d4d; color: #fff; }
.btn-danger:hover { background: #913f3f; border-color: #913f3f; color: #fff; }
