
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700;800&display=swap');

:root {
    --ink: #FFFFFF;
    --muted: #B5BECC;
    --paper: #080F1F;
    --white: #111B2D;
    --line: #26354B;
    --accent: #F2C94C;
    --accent-dark: #D9AD29;
    --olive: #8291A8;
    --sidebar: 250px;
    --shadow: 0 18px 50px rgba(0,0,0,.40);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--paper);
}

body {
    overflow: hidden;
}

button, input {
    font: inherit;
}

/* =========================================================
   STRUTTURA PRINCIPALE
========================================================= */

.app-shell {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0,1fr);
    overflow: hidden;
}

.sidebar {
    height: 100vh;
    background: #0A1529;
    color: #fff;
    padding: 30px 22px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

.brand {
    display: block;
    width: 100%;
    padding: 3px 8px 0;
}

.brand img {
    width: 100%;
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    transform: scale(1.8);
    transform-origin: left center;
}

.sidebar-caption {
    font-size: 9px;
    letter-spacing: 2.1px;
    color: #AAB5C5;
    margin: 15px 8px 27px;
}

.sidebar-rule {
    height: 1px;
    background: #2B3D59;
    margin: 0 8px 26px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #8291A8;
    padding: 0 10px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #C5CEDB;
    padding: 12px 10px;
    border-radius: 7px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    transition: .2s;
}

.nav-item:hover {
    background: #192B49;
    color: #fff;
}

.nav-item.active {
    background: #243753;
    color: #fff;
    box-shadow: inset 3px 0 var(--accent);
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
    color: #AAB5C5;
}

.nav-item.active .nav-icon {
    color: var(--accent);
}

.nav-item kbd {
    margin-left: auto;
    color: #8291A8;
    font-size: 9px;
    font-family: inherit;
}

.nav-divider {
    height: 1px;
    background: #2B3D59;
    margin: 19px 8px;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px 9px 0;
    border-top: 1px solid #2B3D59;
}

.sidebar-edition {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #C5CEDB;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F2C94C;
    box-shadow: 0 0 0 4px #35415A;
}

.sidebar-date {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    margin: 13px 0 18px;
    color: #fff;
}

.sidebar-copy {
    font-size: 9px;
    color: #8291A8;
    letter-spacing: .5px;
}

.sidebar-visits {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 9px;
    line-height: 1.4;
    color: #AAB5C5;
}

.sidebar-visits strong {
    display: inline-block;
    color: #FFFFFF;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   AREA DI LAVORO E NAVIGAZIONE
========================================================= */

.workspace {
    height: 100vh;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 72px;
    flex: 0 0 72px;
    padding: 0 5.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #192B49;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 3;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #AAB5C5;
}

.breadcrumb i {
    font-style: normal;
    color: #71819A;
}

.breadcrumb strong {
    font-size: 11px;
    color: #fff;
    letter-spacing: .2px;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 22px;
}

.search-box {
    height: 36px;
    width: 245px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #40516B;
    background: #101D35;
    padding: 0 10px;
    border-radius: 5px;
    color: #AAB5C5;
}

.search-box > span {
    font-size: 19px;
}

.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 10px;
    color: #fff;
}

.search-box input::placeholder {
    color: #8291A8;
}

.search-box kbd {
    font-size: 8px;
    white-space: nowrap;
    border: 1px solid #40516B;
    border-radius: 3px;
    padding: 3px 5px;
    color: #AAB5C5;
}

.topbar-mark {
    width: 31px;
    height: 31px;
    background: var(--accent);
    color: #101D35;
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 17px;
    border-radius: 50%;
}

.topbar-mark span {
    color: #192B49;
}

.view-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 36px 5.2% 48px;
    scrollbar-width: thin;
    scrollbar-color: #52627A transparent;
}

.view-panel {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    animation: appear .28s ease;
}

.view-panel.active {
    display: block;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   INTRODUZIONE HOME
========================================================= */

.welcome-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 170px;
    margin-bottom: 26px;
}

.eyebrow,
.section-index {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
}

.welcome-line h1,
.page-heading h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px,5vw,66px);
    line-height: .99;
    letter-spacing: -2.3px;
    font-weight: 600;
    margin: 16px 0 12px;
}

.welcome-line h1 em {
    font-weight: 500;
    color: var(--accent);
}

.welcome-line p,
.page-heading p {
    font-size: 12px;
    color: #AAB5C5;
    margin: 0;
    letter-spacing: .1px;
}

/* =========================================================
   STATISTICHE HOME
========================================================= */

.dashboard-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr) 1.5fr;
    background: #192B49;
    border: 1px solid #2B3D59;
    margin-bottom: 42px;
    padding: 17px 24px;
}

.dashboard-strip > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #40516B;
    padding-left: 18px;
}

.dashboard-strip > div:first-child {
    padding-left: 0;
}

.dashboard-strip strong {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}

.dashboard-strip span {
    font-size: 8px;
    letter-spacing: 1.2px;
    color: #AAB5C5;
    margin-top: 3px;
}

.dashboard-strip .strip-note {
    border: 0;
    padding-left: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-style: italic;
    color: #C5CEDB;
    line-height: 1.55;
}

/* =========================================================
   SEZIONI E TITOLI
========================================================= */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 0 0 17px;
}

.section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    margin: 6px 0 0;
    letter-spacing: -.5px;
    color: #fff;
}

.section-index {
    font-size: 8px;
    color: #AAB5C5;
    letter-spacing: 1.5px;
}

.text-link {
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.text-link b {
    font-size: 15px;
    margin-left: 7px;
}

/* =========================================================
   COPERTINA PRINCIPALE
========================================================= */

.cover-story {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    background: #192B49;
    border: 1px solid var(--line);
    cursor: pointer;
    min-height: 0;
    transition: .25s;
}

.cover-story:hover,
.story-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.cover-photo {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #243753;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s;
}

.cover-story:hover .cover-photo img {
    transform: scale(1.035);
}

.cover-tag,
.story-type {
    position: absolute;
    left: 18px;
    bottom: 17px;
    background: var(--accent);
    color: #101D35;
    padding: 7px 10px;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cover-copy {
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.story-date {
    font-size: 8px;
    letter-spacing: 1.2px;
    color: #AAB5C5;
}

.cover-copy h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(27px,3vw,40px);
    line-height: 1.08;
    font-weight: 600;
    margin: 15px 0 8px;
    letter-spacing: -.7px;
    color: #fff;
}

.cover-copy h3 {
    font-size: 13px;
    font-weight: 500;
    color: #C5CEDB;
    margin: 0 0 10px;
}

.cover-copy > p {
    font-size: 11px;
    line-height: 1.8;
    color: #AAB5C5;
    max-width: 460px;
    margin: 8px 0 24px;
}

.story-read {
    font-size: 8px;
    letter-spacing: 1.2px;
    color: var(--accent);
    font-weight: 700;
    margin-top: auto;
}

.story-read b {
    font-size: 15px;
    margin-left: 7px;
}

.latest-head {
    margin-top: 43px;
}

.section-counter {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #AAB5C5;
}

/* =========================================================
   SCHEDE NOTIZIE E RUBRICHE
========================================================= */

.story-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.compact-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.story-card {
    background: #192B49;
    border: 1px solid var(--line);
    min-width: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: .25s;
}

.story-image {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    position: relative;
    background: #243753;
    overflow: hidden;
    flex-shrink: 0;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s;
}

.story-card:hover .story-image img {
    transform: scale(1.035);
}

.story-image .story-type {
    left: 12px;
    bottom: 12px;
    padding: 6px 8px;
    font-size: 7px;
}

.story-content {
    padding: 17px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 190px;
}

.story-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 600;
    margin: 10px 0 8px;
    color: #fff;
}

.story-subtitle {
    font-size: 10px;
    color: #C5CEDB;
    margin: 0 0 6px;
}

.story-summary {
    font-size: 10px;
    line-height: 1.7;
    color: #AAB5C5;
    margin: 0 0 17px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-content .story-read {
    border-top: 1px solid #2B3D59;
    padding-top: 13px;
    margin-top: auto;
}

.story-grid .story-card[hidden] {
    display: none;
}

/* =========================================================
   PAGINE INTERNE
========================================================= */

.page-heading {
    padding: 15px 0 31px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 25px;
}

.page-heading h1 {
    font-size: clamp(48px,6vw,76px);
    margin: 14px 0 10px;
}

.page-heading h1 span {
    color: var(--accent);
}

.page-heading p {
    font-size: 12px;
}

.filter-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 0 0 23px;
}

.filter-chip {
    border: 1px solid #40516B;
    background: transparent;
    padding: 8px 13px;
    border-radius: 3px;
    font-size: 9px;
    color: #C5CEDB;
    cursor: pointer;
    transition: .2s;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--accent);
    color: #101D35;
    border-color: var(--accent);
}

.no-results {
    padding: 35px;
    text-align: center;
    color: #AAB5C5;
    font-family: 'Playfair Display', serif;
}

.empty-state {
    margin: 20px 0 0;
    padding: 50px 25px;
    background: #192B49;
    text-align: center;
}

.empty-state > span {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--accent);
}

.empty-state h2 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 500;
    color: #fff;
}

.empty-state p,
.small-empty {
    font-size: 11px;
    color: #AAB5C5;
}

/* =========================================================
   REDAZIONE
========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.team-card {
    background: #192B49;
    border: 1px solid var(--line);
    padding: 22px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    min-height: 135px;
}

.team-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 50%;
    overflow: hidden;
    background: #243753;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 19px;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    font-size: 7px;
    letter-spacing: 1.2px;
    color: var(--accent);
    font-weight: 700;
}

.team-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    margin: 6px 0;
    color: #fff;
}

.team-info p {
    font-size: 9px;
    line-height: 1.6;
    color: #AAB5C5;
    margin: 0;
}


/* =========================================================
   MODAL ARTICOLI
========================================================= */

.article-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.article-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,10,22,.88);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: min(900px,100%);
    max-height: min(90vh,1000px);
    background: #142541;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.modal-scroll {
    overflow: auto;
    max-height: 90vh;
    padding: 55px clamp(24px,7vw,78px) 60px;
}

.modal-close {
    position: absolute;
    right: 17px;
    top: 17px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid #40516B;
    background: #192B49;
    border-radius: 50%;
    cursor: pointer;
}

.modal-close span {
    position: absolute;
    left: 11px;
    top: 18px;
    width: 15px;
    height: 1px;
    background: #fff;
    transform: rotate(45deg);
}

.modal-close span + span {
    transform: rotate(-45deg);
}

.modal-category {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px,5vw,52px);
    line-height: 1.08;
    margin: 13px 0;
    font-weight: 600;
    color: #fff;
}

.modal-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #C5CEDB;
    margin: 0 0 22px;
}

.modal-authors {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #C5CEDB;
}

.modal-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #243753;
    display: grid;
    place-items: center;
}

.modal-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 13px 0;
    font-size: 9px;
    color: #AAB5C5;
}

.modal-brand {
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 700;
}

.modal-main-image {
    width: 100%;
    margin: 12px 0 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #101D35;
}

.modal-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
}

.modal-summary {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #D5DCE6;
    margin: 20px 0;
}

.modal-body {
    font-size: 13px;
    line-height: 1.95;
    color: #E0E5ED;
}

.modal-body img {
    max-width: 100%;
    height: auto;
}

.modal-extra-gallery {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 25px;
}

.modal-extra-gallery img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}

.modal-videos {
    margin-top: 25px;
}

.modal-videos iframe,
.modal-videos video {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
}

.modal-end {
    text-align: center;
    border-top: 1px solid var(--line);
    margin-top: 45px;
    padding-top: 25px;
    color: var(--accent);
}

.modal-end span {
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    font-size: 12px;
}

.modal-end p {
    font-size: 10px;
    color: #AAB5C5;
}

.modal-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .82rem;
    white-space: nowrap;
}

.modal-views::before {
    content: "◉";
    color: var(--accent);
}

/* =========================================================
   RISULTATI RICERCA
========================================================= */

.search-results {
    width: 100%;
    padding: 30px 0;
}

.search-results[hidden] {
    display: none !important;
}

.search-results-heading {
    margin-bottom: 25px;
}

.search-results-heading h2 {
    margin: 0 0 8px;
}

.search-results-heading p {
    color: var(--muted);
    margin: 0;
}

.search-results-count {
    color: var(--accent);
    font-size: .85rem;
    margin-bottom: 20px;
}

.search-results-grid {
    margin-top: 15px;
}

/* =========================================================
   ORGANIGRAMMA REDAZIONE
========================================================= */

.redazione-organigramma {
    display: flex;
    flex-direction: column;
    gap: 58px;
    padding: 12px 0 55px;
}

.redazione-livello {
    display: block;
    color: #c49b43;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.redazione-direzione {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.redazione-direzione::after {
    content: "";
    width: 1px;
    height: 42px;
    background: rgba(196,155,67,.45);
    position: absolute;
    bottom: -50px;
}

.redazione-sezione {
    width: 100%;
}

.redazione-intestazione {
    margin-bottom: 25px;
}

.redazione-intestazione h2 {
    color: #f2f4f8;
    font-family: Georgia,serif;
    font-size: clamp(25px,3vw,34px);
    font-weight: 600;
    margin: 0 0 8px;
}

.redazione-intestazione p {
    color: #8996aa;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.redazione-persona {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 19px;
    background: #1b2d4b;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: transform .2s ease,border-color .2s ease;
}

.redazione-persona:hover {
    transform: translateY(-3px);
    border-color: rgba(196,155,67,.5);
}

.redazione-avatar {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    overflow: hidden;
    border-radius: 50%;
    background: #293d5c;
    border: 2px solid rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.redazione-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.redazione-avatar span {
    color: #e2c477;
    font-family: Georgia,serif;
    font-size: 21px;
    font-weight: 700;
}

.redazione-dati {
    min-width: 0;
}

.redazione-incarico {
    display: block;
    color: #d3b15f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.redazione-dati h3 {
    color: #ffffff;
    font-family: Georgia,serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.redazione-direzione .redazione-persona {
    width: min(100%,480px);
    justify-content: center;
    text-align: left;
    padding: 25px 32px;
    border-color: rgba(196,155,67,.4);
    background: linear-gradient(135deg,#203655,#172943);
}

.redazione-direzione .redazione-avatar {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
}

.redazione-direzione .redazione-dati h3 {
    font-size: 24px;
}

.redazione-docenti {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    align-items: start;
}

.redazione-settore-docenti {
    min-width: 0;
    padding: 18px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
}

.redazione-settore-titolo {
    color: #d3b15f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 17px;
}

.redazione-docenti-riga {
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
}

.redazione-responsabile {
    width: 100%;
    min-width: 0;
}

.redazione-responsabile > .redazione-persona {
    width: 100%;
    min-height: 100px;
    border-left: 3px solid #c49b43;
}

.redazione-collaboratori {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
    min-width: 0;
}

.redazione-collaboratori .redazione-persona {
    width: 100%;
    background: #17263e;
}

.redazione-collaboratori .redazione-avatar {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
}

.redazione-studenti-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    align-items: start;
}

.redazione-team-studenti {
    min-width: 0;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
    overflow: visible;
}

.redazione-team-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 15px 17px;
    background: #1b2d4b;
    border-bottom: 2px solid #c49b43;
}

.redazione-team-indicatore {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #d3b15f;
}

.redazione-team-header h3 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
}

.redazione-team-conteggio {
    color: #d3b15f;
    font-size: 12px;
    font-weight: 700;
}

.redazione-studenti-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 12px;
}

.redazione-studenti-lista .redazione-persona {
    padding: 13px 125px 13px 11px;
    gap: 11px;
    background: #17263e;
}

.redazione-studenti-lista .redazione-avatar {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
}

.redazione-studenti-lista .redazione-avatar span {
    font-size: 16px;
}

.redazione-studenti-lista .redazione-dati {
    min-width: 0;
}

.redazione-studenti-lista .redazione-dati h3 {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.redazione-studenti-lista .redazione-incarico {
    font-size: 8px;
    margin-bottom: 5px;
}

.redazione-team-vuoto {
    color: #8290a5;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px 5px;
    text-align: center;
}

.redazione-caporedattore {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 20px;
    background: #c49b43;
    border: 1px solid rgba(255,255,255,.2);
    color: #101a2b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .5px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,.3);
}

/* =========================================================
   L'ANGOLO DI ADA - ANTEPRIMA HOME
========================================================= */

.welcome-stamp.ada-stamp {
    width: 360px;
    height: 125px;
    min-height: 125px;
    flex: 0 0 360px;

    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;

    margin-left: auto;
    margin-right: 0;
    padding: 0;

    background: transparent;
    border: none;
}

/* Cornice gialla e immagine */

.ada-preview {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;

    align-items: center;
    justify-content: center;

    padding: 3px;
    border: 1px solid #F2C94C;
    border-radius: 2px;
    background: transparent;

    cursor: pointer;
    overflow: hidden;
    transition: filter .25s ease;
}

.ada-preview:hover {
    filter: brightness(1.08);
}

.ada-preview img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

/* Etichetta verticale */

.ada-label {
    flex: 0 0 34px;
    width: 34px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 5px;
    margin: 0;

    background: #f2c532;
    color: #10243a;

    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;

    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* =========================================================
   L'ANGOLO DI ADA - CORNICE ADATTATA AL PNG
========================================================= */

.welcome-stamp.ada-stamp {
    width: max-content;
    height: 125px;
    min-height: 125px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.ada-preview {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 2px;
}

.ada-preview img {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: 100%;
    object-fit: contain;
}
/* =========================================================
   MODAL L'ANGOLO DI ADA
========================================================= */

.ada-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.ada-modal.active {
    display: flex;
}

.ada-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,12,22,.88);
    backdrop-filter: blur(5px);
}

.ada-modal-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ada-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 60px rgba(0,0,0,.4);
}

.ada-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #10243a;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

/* Nasconde la didascalia/titolo sotto la tavola */

.ada-modal-caption {
    display: none !important;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 1100px) {
    :root {
        --sidebar: 220px;
    }

    .story-grid,
    .compact-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .team-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .cover-copy {
        padding: 25px;
    }

    .redazione-docenti,
    .redazione-studenti-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .welcome-stamp.ada-stamp {
        width: 310px;
        flex-basis: 310px;
    }
}

/* =========================================================
   RESPONSIVE ORGANIGRAMMA
========================================================= */

@media (max-width: 700px) {
    .redazione-organigramma {
        gap: 42px;
    }

    .redazione-docenti,
    .redazione-studenti-grid {
        grid-template-columns: 1fr;
    }

    .redazione-direzione .redazione-persona {
        padding: 20px;
    }

    .redazione-direzione .redazione-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .redazione-direzione .redazione-dati h3 {
        font-size: 20px;
    }

    .redazione-settore-docenti {
        padding: 15px;
    }

    .redazione-studenti-lista .redazione-persona {
        padding-right: 125px;
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 760px) {
    body {
        overflow: auto;
    }

    .app-shell {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .sidebar {
        height: auto;
        padding: 13px 16px;
        display: block;
    }

    .brand {
        width: 155px;
        padding: 0;
    }

    .brand img {
        max-height: 40px;
    }

    .sidebar-caption,
    .sidebar-rule,
    .sidebar-bottom,
    .nav-label,
    .nav-divider {
        display: none;
    }

    .school-logo {
        display: none;
    }

    .side-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        margin-top: 12px;
        padding-bottom: 2px;
    }

    .nav-item {
        width: auto;
        flex: 0 0 auto;
        padding: 9px 10px;
        font-size: 10px;
        gap: 7px;
    }

    .nav-item kbd {
        display: none;
    }

    .nav-icon {
        font-size: 14px;
        width: auto;
    }

    .workspace {
        height: auto;
        min-height: calc(100vh - 100px);
        overflow: visible;
    }

    .topbar {
        height: 55px;
        flex-basis: 55px;
        padding: 0 17px;
    }

    .topbar-tools {
        gap: 10px;
    }

    .search-box {
        width: min(46vw,220px);
        height: 32px;
    }

    .search-box kbd {
        display: none;
    }

    .topbar-mark {
        width: 27px;
        height: 27px;
    }

    .view-container {
        overflow: visible;
        padding: 26px 17px 35px;
    }

    .welcome-line {
        min-height: 160px;
    }

    .welcome-line h1 {
        font-size: 45px;
    }

    .welcome-stamp.ada-stamp {
        width: 250px;
        height: 100px;
        min-height: 100px;
        flex: 0 0 250px;
        gap: 4px;
        margin-left: auto;
        margin-right: 0;
    }

    .ada-label {
        flex-basis: 30px;
        width: 30px;
        font-size: 8px;
    }

    .ada-preview {
        padding: 5px;
    }

    .dashboard-strip {
        padding: 13px;
        grid-template-columns: repeat(3,1fr);
    }

    .dashboard-strip > div {
        padding-left: 10px;
    }

    .dashboard-strip strong {
        font-size: 22px;
    }

    .dashboard-strip span {
        font-size: 7px;
    }

    .dashboard-strip .strip-note {
        display: none;
    }

    .cover-story {
        grid-template-columns: 1fr;
    }

    .cover-photo {
        width: 100%;
        aspect-ratio: 16/9;
        min-height: 0;
        height: auto;
    }

    .cover-copy {
        padding: 22px;
    }

    .cover-copy h2 {
        font-size: 29px;
    }

    .story-grid,
    .compact-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .story-image {
        height: auto;
        aspect-ratio: 16/9;
    }

    .story-content {
        min-height: unset;
    }

    .page-heading h1 {
        font-size: 52px;
    }

    
    .workspace-footer {
    margin: 15px 17px 0;
    padding: 14px 0 10px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-content {
    gap: 9px;
}

.footer-content img {
    width: 38px;
}

.footer-meta {
    gap: 7px;
    font-size: 8px;
}


    .article-modal {
        padding: 0;
    }

    .modal-container {
        height: 100%;
        max-height: 100%;
        width: 100%;
    }

    .modal-scroll {
        max-height: 100%;
        padding: 58px 22px 40px;
    }

    .modal-extra-gallery {
        grid-template-columns: 1fr;
    }

    .modal-main-image img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .ada-modal {
        padding: 15px;
    }

    .ada-modal-content img {
        max-height: 75vh;
    }
}

/* =========================================================
   SCHERMI BASSI
========================================================= */

@media (min-width: 761px) and (max-height: 780px) {
    .view-container {
        padding-top: 25px;
    }

    .welcome-line {
        min-height: 135px;
    }

    .welcome-line h1 {
        font-size: 51px;
    }

    .dashboard-strip {
        margin-bottom: 30px;
    }

    .cover-photo {
        min-height: 0;
    }

    .cover-story {
        min-height: 0;
    }
}



/* =========================================================
   FOOTER
========================================================= */

.workspace-footer {
    border-top: 1px solid var(--line);
    margin: 22px 5.2% 0;
    padding: 23px 0 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo e testo a sinistra */

.footer-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

.footer-content img {
    display: block;
    width: 45px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-text {
    font-size: 8px;
    line-height: 1.35;
    color: #AAB5C5;
    text-align: left;
}

/* Versione e riferimenti a destra */

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;

    font-size: 9px;
    line-height: 1.4;
    color: var(--muted);
    white-space: nowrap;
}

.footer-version {
    font-variant-numeric: tabular-nums;
}

.footer-separator {
    color: #71819A;
}

.footer-legal-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: color .2s ease;
}

.footer-legal-link:hover {
    color: var(--accent);
}

.footer-legal-link:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 3px;
}

/* =========================================================
   PLACEHOLDER IMMAGINI
========================================================= */

.image-placeholder {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#192B49,#304461);
    color: #F2C94C;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    letter-spacing: 3px;
}



/* LOGO ISTITUTO */

.school-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 38px;
    padding: 0 8px;
}

.school-logo img {
    display: block;
    width: 100%;
    max-width: 190px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}


/* =========================================================
   MODAL PRIVACY POLICY E NOTE LEGALI
========================================================= */

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.legal-modal.active {
    visibility: visible;
    opacity: 1;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.legal-modal-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 900px;
    max-height: 88vh;

    display: flex;
    flex-direction: column;

    background: #151515;
    color: #eeeeee;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);

    transform: translateY(15px);
    transition: transform 0.25s ease;
}

.legal-modal.active .legal-modal-content {
    transform: translateY(0);
}

.legal-modal-close {
    position: absolute;
    top: 17px;
    right: 20px;
    z-index: 3;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg);
}

.legal-modal-scroll {
    overflow-y: auto;
    padding: 38px 42px 28px;

    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.legal-modal-scroll::-webkit-scrollbar {
    width: 7px;
}

.legal-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

/* INTESTAZIONE */

.legal-modal-heading {
    padding-bottom: 25px;
    margin-bottom: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.legal-modal-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #a7a7a7;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-modal-heading h2 {
    margin: 0 45px 15px 0;

    color: #ffffff;

    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.legal-modal-intro {
    color: #bdbdbd;

    font-size: 13px;
    line-height: 1.7;
}

.legal-modal-intro p {
    margin: 5px 0;
}

/* ACCORDION */

.legal-accordion {
    display: flex;
    flex-direction: column;
}

.legal-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.legal-accordion-trigger {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 19px 5px;

    border: none;
    background: transparent;
    color: #eeeeee;

    text-align: left;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;

    cursor: pointer;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.legal-accordion-trigger:hover {
    color: #ffffff;
    padding-left: 10px;
}

.legal-accordion-title {
    display: block;
}

.legal-accordion-number {
    color: #999999;
    margin-right: 5px;
}

/* TRIANGOLINO */

.legal-accordion-arrow {
    flex: 0 0 9px;

    width: 9px;
    height: 9px;

    border-right: 2px solid #999999;
    border-bottom: 2px solid #999999;

    transform: rotate(45deg);
    transition: transform 0.25s ease;

    margin-right: 5px;
    margin-top: -5px;
}

.legal-accordion-trigger[aria-expanded="true"] {
    color: #ffffff;
}

.legal-accordion-trigger[aria-expanded="true"] .legal-accordion-arrow {
    transform: rotate(225deg);
    margin-top: 5px;
    border-color: #ffffff;
}

/* CONTENUTO SEZIONI */

.legal-accordion-panel {
    padding: 0 15px 20px 5px;
}

.legal-accordion-panel[hidden] {
    display: none;
}

.legal-accordion-body {
    color: #c5c5c5;

    font-size: 13px;
    line-height: 1.85;
}

.legal-accordion-body p {
    margin: 0 0 14px;
}

.legal-accordion-body ul {
    margin: 5px 0 17px;
    padding-left: 23px;
}

.legal-accordion-body li {
    padding-left: 4px;
    margin-bottom: 5px;
}

.legal-accordion-body li::marker {
    color: #999999;
}

.legal-accordion-body p:last-child,
.legal-accordion-body ul:last-child {
    margin-bottom: 0;
}

/* ERRORE LETTURA DOCUMENTO */

.legal-modal-error {
    padding: 20px 5px;

    color: #d6a0a0;
    font-size: 13px;
}

/* FOOTER DEL MODAL */

.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 25px;
    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.13);

    color: #858585;

    font-size: 10px;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .legal-modal {
        padding: 10px;
    }

    .legal-modal-content {
        max-height: 94vh;
        border-radius: 9px;
    }

    .legal-modal-scroll {
        padding: 30px 20px 22px;
    }

    .legal-modal-heading h2 {
        font-size: 21px;
    }

    .legal-accordion-trigger {
        padding: 16px 3px;
        font-size: 12px;
    }

    .legal-accordion-panel {
        padding-left: 3px;
        padding-right: 3px;
    }

    .legal-accordion-body {
        font-size: 12px;
        line-height: 1.75;
    }

    .legal-modal-close {
        top: 12px;
        right: 12px;
    }

}

/* =====================================================
   FOOTER - VERSIONE E NOTE LEGALI
===================================================== */

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-version {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.footer-version strong {
    color: #d4a900;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;

    background: transparent;
    border: none;

    color: #d4a900;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;

    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-legal-link span {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.footer-legal-link:hover {
    color: #ffffff;
}

.footer-legal-link:hover span {
    transform: translate(2px, -2px);
}

.footer-legal-link:focus-visible {
    outline: 2px solid #d4a900;
    outline-offset: 4px;
    border-radius: 2px;
}

/* =====================================================
   FOOTER - TESTO, FIRMA E COPYRIGHT
===================================================== */

.footer-text {
    color: #e5e8ed;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 400;
    opacity: 1;
}

.footer-signature {
    color: #d4a900;
    font-weight: 700;
    font-style: italic;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-content {
    transform: translateY(8px);
}


/* ==========================================
   FOOTER - RESTYLING DEFINITIVO
========================================== */

.workspace-footer {
    margin: 24px 5.2% 0;
    padding: 24px 0 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;

    border-top: 1px solid var(--line);
}

/* Blocco logo e descrizione */
.footer-content {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
    transform: none;
}

.footer-content img {
    width: 50px;
    height: auto;
    flex-shrink: 0;
}

.footer-text {
    max-width: 760px;

    color: #dce3ed;
    font-size: 11px;
    line-height: 1.65;
    font-weight: 400;

    text-align: left;
}

.footer-signature {
    color: #e0b51b;
    font-weight: 700;
    font-style: italic;
}

/* Copyright, versione e privacy */
.footer-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;

    flex-shrink: 0;
    white-space: nowrap;

    font-size: 10px;
    line-height: 1.5;
}

.footer-copyright {
    font-size: 10px;
    color: #cbd3df;
}

.footer-version {
    font-size: 10px;
}

.footer-version strong {
    font-size: 11px;
}

.footer-legal-link {
    font-size: 10px;
}

/* TABLET E SMARTPHONE */
@media (max-width: 900px) {
    .workspace-footer {
        margin: 22px 20px 0;
        padding: 20px 0 16px;

        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-content {
        align-items: flex-start;
        gap: 12px;
    }

    .footer-content img {
        width: 42px;
    }

    .footer-text {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.6;
    }

    .footer-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .workspace-footer {
        margin-left: 15px;
        margin-right: 15px;
    }

    .footer-content img {
        width: 36px;
    }

    .footer-text {
        font-size: 10px;
        line-height: 1.55;
    }

    .footer-meta {
        font-size: 9px;
        gap: 7px;
    }
}

/* =========================================================
   PULSANTE AREA RISERVATA
========================================================= */

.topbar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.reserved-area-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 42px;
    padding: 0 17px;

    border: 1px solid rgba(20, 30, 45, 0.14);
    border-radius: 7px;

    background: #202b3b;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.reserved-area-button:hover {
    background: #34445b;
    border-color: #34445b;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(20, 30, 45, 0.16);
}

.reserved-area-button:focus-visible {
    outline: 3px solid rgba(52, 68, 91, 0.35);
    outline-offset: 3px;
}

.reserved-area-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);

    font-size: 13px;
    line-height: 1;
}

/* Adattamento mobile */

@media (max-width: 650px) {

    .topbar-tools {
        gap: 8px;
    }

    .reserved-area-button {
        min-height: 38px;
        padding: 0 10px;
        gap: 5px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .reserved-area-icon {
        width: 16px;
        height: 16px;
        font-size: 11px;
    }
}