/* Layout autonomo di Fileman: fotografia a tutta pagina e pannello operativo. */
:root { color-scheme: light; font-family: Inter, "Segoe UI", Arial, sans-serif; color: #20252e; background: #274b55; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 33, 44, .22), transparent 30%, rgba(9, 31, 38, .38)), linear-gradient(90deg, rgba(13, 33, 44, .08) 30%, rgba(13, 33, 44, .22)), url('../img/fileman-bellagio.jpg') center / cover no-repeat; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button, input, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #2459ee; outline-offset: 4px; }
.transfer-header a:focus-visible, .transfer-footer a:focus-visible { outline-color: white; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px 20px; background: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.transfer-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 48px; color: white; }
.transfer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 750; letter-spacing: -1.5px; line-height: 1; text-shadow: 0 1px 12px #193c4a55; }
.brand-dot { color: #c0dbff; }
.site-link { display: flex; gap: 20px; align-items: center; padding: 11px 20px; border: 1px solid #ffffff60; border-radius: 30px; font-size: 13px; font-weight: 600; background: #122c3645; backdrop-filter: blur(10px); }
.site-link:hover { background: #122c3675; }
.transfer-layout { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 18px 6vw 22px; display: grid; grid-template-columns: minmax(320px, 410px) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 140px); }
.transfer-card { width: 100%; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 80px #0b293b35, 0 3px 12px #0b293b12; }
.card-body { padding: 24px 28px 20px; }
.card-eyebrow { margin: 0 0 10px; color: #747c8b; font-size: 10px; letter-spacing: 1.8px; font-weight: 700; }
h1 { margin: 0 0 8px; font-size: 28px; font-weight: 650; line-height: 1.15; letter-spacing: -1.3px; }
.card-intro { margin: 0 0 18px; color: #6c7481; font-size: 14px; line-height: 1.65; }
.login-form { display: grid; gap: 10px; }
.login-form label { font-size: 12px; font-weight: 650; }
.login-form input { width: 100%; min-width: 0; padding: 15px 16px; border: 1px solid #dce0e7; border-radius: 10px; color: #20252e; background: #fbfcfd; font-size: 16px; }
.login-form input::placeholder { color: #828a97; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 30px; background: #2459ee; color: white; font-weight: 600; font-size: 14px; transition: background .15s; }
.primary-button:hover { background: #1645cd; }
.primary-button span { font-size: 22px; line-height: 1; font-weight: 400; }
.login-form .primary-button { margin-top: 12px; }
.access-note { margin: 18px 0 0; color: #737c89; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.access-note svg { flex-shrink: 0; }
.card-signature { padding: 13px 24px; text-align: center; border-top: 1px solid #edf0f4; background: #fafbfc; color: #7a8290; font-size: 11px; }
.transfer-alert { margin: 0 0 20px; padding: 12px 14px; border-radius: 9px; font-size: 13px; overflow-wrap: anywhere; }
.is-error { background: #fff1f0; color: #a32d2d; }
.is-success { background: #eaf7f0; color: #226344; }
.file-picker { position: relative; display: flex; align-items: center; gap: 15px; min-height: 80px; padding: 14px 16px; border: 1px dashed #b9c8e8; border-radius: 13px; background: #f7f9ff; cursor: pointer; }
.file-picker:hover { background: #eef3ff; border-color: #2459ee; }
.file-picker:focus-within { outline: 3px solid #2459ee; outline-offset: 3px; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.add-file { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: #2459ee; color: white; font-size: 33px; font-weight: 300; line-height: 1; border-radius: 50%; padding-bottom: 3px; }
.picker-text { display: grid; gap: 4px; min-width: 0; }
.picker-text strong { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.picker-text > span { color: #788294; font-size: 12px; }
.upload-form .primary-button { margin-top: 12px; }
.upload-status { font-size: 12px; color: #5a6577; margin-bottom: 0; }
.files-section { border-top: 1px solid #edf0f4; padding: 16px 28px 8px; }
.files-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.files-heading h2 { margin: 0; font-size: 13px; font-weight: 650; }
.file-count { padding: 2px 8px; color: #737e90; background: #f0f3f8; border-radius: 6px; font-size: 11px; }
/* Limita l'elenco in base all'altezza disponibile, mantenendo visibile il pannello. */
.file-list { margin: 0; padding: 0 4px 0 0; list-style: none; max-height: clamp(96px, calc(100svh - 610px), 220px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d2d9e5 transparent; }
.file-item { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #edf0f4; }
.file-item:last-child { border-bottom: 0; }
.file-download { display: flex; flex: 1; min-width: 0; gap: 11px; align-items: center; padding: 10px 0; border-radius: 5px; }
.file-download:hover .file-info strong { color: #2459ee; }
.file-download:focus-visible { outline-offset: -3px; }
.file-icon { display: grid; place-items: center; width: 36px; height: 41px; border-radius: 8px; background: #f1f4fa; color: #72809a; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.file-info strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.file-info small { color: #7c8594; font-size: 10px; }
.download-arrow { color: #2459ee; flex-shrink: 0; }
.delete-button { min-height: 44px; padding: 5px; font-size: 10px; border: 0; background: transparent; color: #ad3535; border-radius: 5px; }
.delete-button:hover { background: #fff1f0; }
.empty-state { color: #7a8290; font-size: 13px; padding: 10px 0 16px; line-height: 1.7; }
.session-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 24px; border-top: 1px solid #edf0f4; background: #fafbfc; }
.session-role { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #697583; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #348665; flex-shrink: 0; }
.logout-button { border: 0; border-radius: 5px; padding: 8px 5px; min-height: 40px; background: transparent; color: #4f5b70; font-size: 11px; }
.logout-button:hover { color: #2459ee; }
.logout-button span { margin-left: 6px; }
.landscape-caption { color: white; text-shadow: 0 2px 30px #102c3b70; padding-bottom: 5px; }
.landscape-eyebrow { font-size: 10px; letter-spacing: 2.4px; font-weight: 600; margin: 0 0 20px; }
.landscape-caption h2 { font-size: clamp(42px, 4.8vw, 76px); line-height: 1.04; font-weight: 550; letter-spacing: -2.8px; margin: 0 0 24px; }
.landscape-caption > p:last-child { margin: 0; font-size: 14px; color: #fffffff0; max-width: 330px; }
.transfer-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 48px 18px; color: #ffffffed; font-size: 11px; text-shadow: 0 1px 8px #173845; }
.transfer-footer a { font-weight: 700; }
.transfer-footer a:hover { text-decoration: underline; }
.photo-location { display: flex; align-items: center; gap: 9px; }
.location-rule { width: 23px; height: 1px; background: #ffffff80; margin: 0 3px; }
@media (min-width: 1600px) { .transfer-layout { padding-right: 96px; padding-left: 96px; } }
@media (max-width: 900px) {
    .transfer-header { padding: 18px 28px; }
    .transfer-layout { gap: 36px; padding: 16px 28px 20px; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); }
    .landscape-caption h2 { font-size: 43px; letter-spacing: -1.8px; }
    .transfer-footer { padding: 14px 28px; }
}
@media (max-width: 700px) {
    body::before { background-position: 58% center; }
    .transfer-header { padding: 16px 20px; }
    .transfer-brand { font-size: 27px; gap: 8px; }
    .transfer-brand svg { width: 28px; }
    .site-link { padding: 9px 14px; font-size: 11px; gap: 12px; }
    .transfer-layout { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 12px 20px 22px; }
    .transfer-card { max-width: 410px; }
    .card-body { padding: 22px 24px 18px; }
    .files-section { padding-right: 25px; padding-left: 25px; }
    .landscape-caption { text-align: center; }
    .landscape-eyebrow { display: none; }
    .landscape-caption h2 { font-size: 31px; line-height: 1.12; letter-spacing: -1px; margin: 0; }
    .landscape-caption > p:last-child { display: none; }
    .transfer-footer { padding: 12px 20px 22px; font-size: 10px; flex-wrap: wrap; justify-content: center; gap: 9px 22px; }
    .location-rule { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
