@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-weight: 300;
    font-display: swap;
    src: url('/brand/atkinson-light.woff2') format('woff2');
}
@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    font-weight: 500;
    font-display: swap;
    src: url('/brand/atkinson-medium.woff2') format('woff2');
}
* {
    box-sizing: border-box;
}
/* Un elemento nascosto non si vede mai: nessuno stile (griglie, pulsanti) lo rimette in pagina. */
[hidden] {
    display: none !important;
}
:root {
    font:
        300 17px/1.5 'Atkinson Hyperlegible Next',
        system-ui,
        sans-serif;
    color: #17182d;
    background: #f5f5fb;
    --blue: #0009ec;
    --blue-strong: #0e12b0;
    --blue-tint: #eeefff;
    --lime: #c3de37;
    --border: #dfe0ec;
    --border-strong: #bbbed5;
    --muted: #4e536c;
    --ink: #17182d;
    --surface: #fff;
    --shadow: 0 2px 4px #1d214a06, 0 12px 25px #1d214a08;
    --control-radius: 8px;
    --panel-radius: 14px;
}
body {
    margin: 0;
}
a {
    color: var(--blue);
}
a:hover {
    text-decoration-thickness: 2px;
}
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.bar,
main,
footer {
    max-width: 1220px;
    margin: auto;
    padding: 1rem clamp(1rem, 3vw, 1.9rem);
}
.bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
}
.bar:has(.bar-account:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, auto);
}
.brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-self: start;
    min-width: 0;
    gap: 0.6rem 0.85rem;
    font-weight: 500;
    text-decoration: none;
}
.brand img {
    display: block;
    width: clamp(8rem, 31vw, 11rem);
    max-width: 100%;
    height: auto;
}
.brand span {
    color: var(--ink);
    border-inline-start: 3px solid var(--lime);
    padding-inline-start: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.035em;
}
.bar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.25rem;
}
.portal-language {
    margin: 0;
}
.portal-language select {
    min-height: 2.3rem;
    width: auto;
    margin: 0;
    padding-block: 0.35rem;
    font-size: 0.9rem;
}
.event-translation {
    margin-block: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--panel-radius);
}
.event-translation > summary {
    cursor: pointer;
    font-weight: 500;
}
.bar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--control-radius);
    color: white;
    background: var(--blue);
    white-space: nowrap;
    text-decoration: none;
    transition: background 160ms ease;
}
.bar-nav a:hover,
.bar-nav a[aria-current='page'] {
    color: white;
    background: var(--blue-strong);
}
.bar-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    max-width: min(32vw, 24rem);
}
#account-email {
    color: var(--ink);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    min-width: 0;
}
.bar-account button {
    min-height: 2.3rem;
    padding: 0.4rem 0.75rem;
}
main {
    min-height: 72vh;
    padding-top: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: clamp(2rem, 6vw, 4.5rem);
}
h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 0.8rem;
}
h1 {
    font-size: clamp(2.25rem, 6.2vw, 3.85rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}
h2 {
    font-size: 1.5rem;
}
p {
    margin: 0.5rem 0 1rem;
}
.row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--panel-radius);
    padding: clamp(1rem, 3vw, 1.45rem);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.muted {
    color: var(--muted);
}
.past {
    background: #f1f2f6;
    color: #45495c;
    box-shadow: none;
}
.badge {
    display: inline-block;
    background: #ebecff;
    color: #191d91;
    border-radius: 99px;
    padding: 0.22rem 0.7rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}
.description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.rich-description {
    overflow-wrap: anywhere;
}
.event-description {
    margin-block: 0.5rem 1.2rem;
    padding: clamp(0.75rem, 3vw, 1rem);
    border: 1px solid var(--border);
    border-radius: var(--panel-radius);
    background: #f6f6fc;
}
.event-description > :first-child {
    margin-block-start: 0;
}
.event-description > :last-child {
    margin-block-end: 0;
}
.language-warning { margin: 0.5rem 0; }
.rich-description :is(h2, h3, h4, h5, h6) {
    margin-block: 1rem 0.35rem;
}
.rich-description h2 {
    font-size: 1.35rem;
}
.rich-description h3 {
    font-size: 1.15rem;
}
.rich-description :is(ul, ol) {
    padding-inline-start: 1.5rem;
}
.rich-description li > p {
    margin-block: 0.2rem;
}
.rich-description strong {
    font-weight: 700;
}
.rich-description blockquote {
    margin-inline: 0;
    padding-inline-start: 0.8rem;
    border-inline-start: 3px solid #c6c9e9;
    color: var(--muted);
}
.rich-description pre {
    padding: 0.65rem;
    background: #f1f2fb;
    border-radius: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.description-field {
    margin-block: 0.85rem;
}
.editor-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.markdown-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    background: #f6f7fc;
}
.markdown-toolbar .markdown-tabs {
    padding: 0;
    border: 0;
    background: transparent;
}
button.translate-action {
    margin-inline-start: auto;
    background: #c3de37;
    border-color: #c3de37;
    color: #111;
}
button.translate-action:not(:disabled):hover {
    background: #d0ea48;
    border-color: #d0ea48;
    color: #111;
}
[data-theme='dark'] button.translate-action {
    background: #c3de37;
    border-color: #c3de37;
    color: #111;
}
[data-theme='dark'] button.translate-action:not(:disabled):hover {
    background: #d0ea48;
    color: #111;
}
[data-theme='dark'] .markdown-toolbar {
    background: #292c3d;
    border-color: var(--border);
}
@media (max-width: 420px) {
    .translate-action { margin-inline-start: 0; }
}
.markdown-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    background: #f6f7fc;
}
.markdown-tabs button {
    padding: 0.35rem 0.75rem;
    font-size: 0.94rem;
}
.mail-translation-actions {
    margin-block-start: 0.75rem;
}
.markdown-tabs button[aria-selected='true'] {
    color: #191d91;
    background: #e2e4ff;
    border-color: var(--blue);
}
.markdown-source,
.markdown-preview {
    min-height: 12rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0 0 11px 11px;
}
.markdown-writing-panel {
    padding: 0.7rem 0.85rem 0.85rem;
}
.markdown-writing-panel > label {
    display: block;
}
.markdown-source {
    border: 1px solid var(--border-strong);
    border-radius: var(--control-radius);
    background: #fff;
    resize: vertical;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1rem;
}
/* Sugli schermi grandi le finestre in cui si scrive in Markdown sono più larghe, il campo cresce col testo e si può
   aprire a tutto schermo. Sui telefoni le finestre occupano già quasi tutto lo spazio. */
@media (min-width: 761px) {
    dialog.markdown-dialog {
        width: min(calc(100% - 3rem), 960px);
    }
    /* I moduli hanno una larghezza massima propria: qui seguono la finestra. */
    .markdown-dialog .dialog-content form {
        max-width: none;
    }
    /* Dove il campo non sa crescere da solo parte più alto, e si allunga trascinandone l'angolo. */
    .markdown-dialog .markdown-source {
        min-height: min(40dvh, 22rem);
    }
    @supports (field-sizing: content) {
        .markdown-dialog .markdown-source {
            field-sizing: content;
            min-height: min(30dvh, 16rem);
            max-height: 60dvh;
        }
    }
    dialog.expanded-editor-dialog {
        width: calc(100% - 2rem);
        max-width: none;
        height: calc(100dvh - 2rem);
        max-height: none;
    }
    .expanded-editor-dialog .dialog-content {
        display: flex;
        flex-direction: column;
    }
    .expanded-tools {
        display: flex;
        margin-block-end: 0.6rem;
    }
    .expanded-tools:empty {
        display: none;
    }
    /* Gli avvisi restano sotto il testo senza togliergli troppo spazio. */
    .expanded-editor-dialog .markdown-notes {
        flex: none;
        max-height: 30dvh;
        overflow: auto;
    }
    .expanded-editor {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(0, 1fr);
        gap: 1rem;
    }
    .expanded-editor > div,
    .expanded-editor .markdown-writing-panel {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    dialog.expanded-editor-dialog .expanded-editor .markdown-writing-panel {
        flex: 1;
        padding: 0;
        background: transparent;
    }
    /* Le due etichette allineano il testo e la sua anteprima. */
    .expanded-editor .editor-label {
        margin: 0 0 0.35rem;
        font-weight: 500;
    }
    .expanded-editor :is(.markdown-source, .markdown-preview) {
        flex: 1;
        min-height: 0;
        margin: 0;
        overflow: auto;
        resize: none;
        border: 1px solid var(--border-strong);
        border-radius: var(--control-radius);
    }
}
@media (max-width: 760px) {
    .markdown-toolbar button.icon-button.expand-action {
        display: none;
    }
}
.markdown-source:focus-visible {
    border-color: var(--blue);
    outline-offset: 2px;
}
.markdown-preview:focus-visible {
    outline-offset: -3px;
}
.markdown-preview > :first-child {
    margin-top: 0;
}
.markdown-preview > :last-child {
    margin-bottom: 0;
}
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    background: var(--blue);
    color: white;
    padding: 0.4rem 0.75rem;
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}
button:not(:disabled):hover,
.button:hover {
    box-shadow: 0 2px 0 #17182d22;
}
button:where(:not(:disabled, .secondary, .danger, .mode-card, .maps-toggle)):hover,
.button:where(:not(.secondary)):hover {
    background: var(--blue-strong);
}
button:not(:disabled):active,
.button:active {
    transform: translateY(1px);
}
.secondary {
    background: var(--surface);
    color: var(--blue);
    border-color: var(--border-strong);
}
.secondary:hover {
    border-color: var(--blue);
    color: var(--blue-strong);
}
.danger {
    background: var(--surface);
    color: #961c2b;
    border-color: #e8bec5;
}
.danger:not(:disabled):hover {
    background: #fff0f2;
    border-color: #b84a5b;
    color: #86192a;
}
.large {
    min-height: 4.75rem;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
.loading-state {
    display: grid;
    min-height: clamp(12rem, 40vh, 24rem);
    place-items: center;
    color: var(--blue);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.loading-spinner,
button[data-busy='true']::after {
    display: block;
    width: var(--spinner-size, 2.35rem);
    height: var(--spinner-size, 2.35rem);
    border: var(--spinner-stroke, 3px) solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-turn 680ms linear infinite;
}
button[data-busy='true'] {
    position: relative;
    color: transparent;
    opacity: 0.88;
}
button[data-busy='true']::after {
    --spinner-size: 1.1rem;
    --spinner-stroke: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    color: #fff;
    content: '';
}
button.secondary[data-busy='true']::after {
    color: var(--blue);
}
@keyframes spinner-turn {
    to {
        transform: rotate(1turn);
    }
}
:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}
form {
    max-width: 730px;
}
label {
    display: block;
    margin: 0.7rem 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
input,
select,
textarea {
    display: block;
    font: inherit;
    color: inherit;
    border: 1px solid var(--border-strong);
    border-radius: var(--control-radius);
    padding: 0.57rem 0.7rem;
    width: 100%;
    min-width: 0;
    background: #fdfdff;
}
input[type='checkbox'],
input[type='radio'] {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--blue);
}
textarea {
    min-height: 7rem;
}
fieldset {
    min-inline-size: 0;
    margin: 1rem 0;
    border: 1px solid #bcc5db;
    border-radius: 12px;
}
.event-list {
    padding: 0;
    list-style: none;
}
.event-list li {
    margin: 0.75rem 0;
}
#notice {
    position: fixed;
    inset: auto 1rem 1rem auto;
    max-width: min(28rem, 90vw);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
    z-index: 3;
}
#notice:not(:empty) {
    background: #20264d;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px #0003;
}
dialog {
    --dialog-padding: clamp(1.1rem, 4vw, 2rem);
    width: min(calc(100% - 1.5rem), 710px);
    border: 1px solid var(--border);
    border-radius: 18px 18px 6px 18px;
    padding: 0;
    max-height: min(90dvh, 58rem);
    overflow: hidden;
    background:
        linear-gradient(90deg, var(--blue) 0 26%, var(--lime) 26% 36%, transparent 36%) top / 100% 3px no-repeat,
        var(--surface);
    box-shadow: 0 24px 78px #08093654;
}
.dialog-content {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: var(--dialog-padding) var(--dialog-padding) 0.65rem;
}
.dialog-content > h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.38rem, 4vw, 1.85rem);
    letter-spacing: -0.035em;
    color: var(--ink);
}
dialog[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    animation: panel-in 220ms ease-out both;
}
dialog::backdrop {
    background: #12152b9c;
    backdrop-filter: blur(4px);
}
.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin: 0;
    max-width: none;
    padding: 0.8rem var(--dialog-padding);
    border-top: 1px solid var(--border);
    background: #f9f9fd;
}
.dialog-actions .button,
.calendar-options .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.calendar-options {
    justify-content: center;
    margin-top: 1rem;
}
dialog:has(.calendar-options) .dialog-actions {
    justify-content: center;
}
dialog:has(.calendar-options) .dialog-actions button {
    background: #eef0f5;
    border-color: var(--border);
    color: var(--ink);
}
.user-records {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    list-style: none;
}
.user-record {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow-wrap: anywhere;
}
.user-record p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}
.user-record button {
    font-size: 0.88rem;
}
.user-record button:disabled {
    cursor: not-allowed;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th,
td {
    text-align: left;
    border-bottom: 1px solid #dfe3f0;
    padding: 0.5rem;
    overflow-wrap: anywhere;
}
footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}
footer a {
    color: var(--ink);
    text-underline-offset: 0.2em;
}
/* A sinistra l'associazione e il link per sostenerla con una donazione. */
.footer-association {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.skip-link {
    position: absolute;
    z-index: 4;
    padding: 0.6rem 1rem;
    background: white;
    transform: translateY(-110%);
}
.skip-link:focus {
    transform: translateY(0);
}
.catalog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background: linear-gradient(110deg, #14152e 28%, #181a56 63%, #171cc3 120%);
    border-radius: 22px 22px 7px 22px;
    padding: clamp(2.25rem, 7vw, 5rem) clamp(1.2rem, 5.5vw, 4.1rem);
    box-shadow: 0 14px 35px #14164a24;
}
.catalog-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lime) 0 17%, #6d71ff 17% 44%, transparent 44%);
    pointer-events: none;
}
.page-intro h1 {
    font-size: clamp(2.25rem, 6.35vw, 5.05rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
}
.page-intro h1 span {
    color: var(--lime);
}
.page-intro p {
    color: #edefff;
    margin: 1.05rem 0 0;
    font-size: clamp(1rem, 3vw, 1.22rem);
}
.hero-art {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 53%;
    pointer-events: none;
}
.hero-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, #b2b4ff25 0 1px, transparent 1px 24px),
        repeating-linear-gradient(0deg, #b2b4ff25 0 1px, transparent 1px 24px);
    mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero-art i {
    position: absolute;
    top: 50%;
    left: 57%;
    width: 65%;
    aspect-ratio: 1.82;
    border-radius: 13px 13px 4px 13px;
}
.hero-enter .hero-art i {
    animation: hero-ticket-in 650ms cubic-bezier(0.2, 0.72, 0.3, 1) both;
}
.hero-art i:nth-child(1) {
    translate: -40% -40%;
    rotate: 13deg;
    border: 1px solid #8083ff;
    background: linear-gradient(115deg, #262bb3, #383fff);
    box-shadow: 0 18px 42px #080a4e66;
}
.hero-art i:nth-child(2) {
    translate: -56% -57%;
    rotate: -14deg;
    color: #17182d;
    background: linear-gradient(125deg, #ddeb7a, var(--lime) 65%, #abc82c);
    box-shadow: 0 15px 34px #10103355;
    animation-delay: 65ms;
}
.hero-art i:nth-child(2)::before {
    content: '';
    position: absolute;
    inset: 0 24% 0 auto;
    border-inline-start: 2px dashed #343b2580;
}
.hero-art i:nth-child(2)::after {
    content: '';
    position: absolute;
    inset: 23% 36% 23% 15%;
    background: linear-gradient(90deg, currentColor 0 13%, transparent 13% 26%, currentColor 26% 39%, transparent 39%),
        linear-gradient(113deg, transparent 53%, currentColor 53% 66%, transparent 66%);
}
.hero-art i:nth-child(3) {
    /* Cornice concentrica al biglietto verde: stesso centro e stessa rotazione, appena più grande. */
    translate: -56% -57%;
    rotate: -14deg;
    scale: 1.1;
    border: 1px solid #e4e6ff72;
    z-index: -1;
    animation-delay: 110ms;
}
.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1rem 0 1.25rem;
}
.mode-card {
    min-height: 7.25rem;
    padding: 1rem 3.3rem 1rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--panel-radius) var(--panel-radius) 5px var(--panel-radius);
    font-size: clamp(1.45rem, 4vw, 2rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
}
.mode-card small {
    font-size: 0.91rem;
    font-weight: 300;
    letter-spacing: normal;
    margin-top: 0.25rem;
    color: var(--muted);
}
.mode-count {
    margin-top: 0.5rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: #eeefff;
    color: #292479;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.25;
}
.mode-count-empty {
    background: #f1f2f7;
    color: var(--muted);
}
.mode-live {
    background: #fff;
    color: var(--ink);
}
.mode-online {
    background: #f8fbe9;
    border-color: #dfe6bf;
    color: var(--ink);
}
.mode-card:hover,
.mode-card[aria-pressed='true'] {
    border-color: var(--blue);
    box-shadow: inset 0 -3px var(--blue);
}
.mode-card:hover {
    transform: translateY(-2px);
}
.mode-icon {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    translate: 0 -50%;
    border-radius: 11px 11px 4px 11px;
    background: var(--blue);
    color: white;
}
.mode-online .mode-icon {
    background: var(--lime);
    color: #252c0b;
}
.mode-icon::before,
.mode-icon::after {
    content: '';
    display: block;
}
.pin-icon::before {
    width: 0.85rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-radius: 55% 55% 55% 12%;
    transform: rotate(-45deg);
}
.pin-icon::after {
    position: absolute;
    width: 0.32rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: currentColor;
}
.video-icon::before {
    width: 0.9rem;
    height: 0.72rem;
    margin-right: 0.38rem;
    border: 2px solid currentColor;
    border-radius: 4px;
}
.video-icon::after {
    position: absolute;
    width: 0;
    height: 0;
    right: 0.5rem;
    border: 0.34rem solid transparent;
    border-right-color: currentColor;
}
.mode-card[aria-pressed='true'] .mode-arrow {
    transform: rotate(90deg);
}
.mode-arrow {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    translate: 0 -50%;
    font-size: 1.5rem;
    color: var(--blue-strong);
    transition: transform 180ms ease;
}
.switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}
.catalog-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
    padding-block: 0.6rem;
    border-block: 1px solid var(--border);
}
.catalog-tools .switcher {
    margin: 0;
}
.calendar-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.35rem;
    padding: 1.15rem 1.3rem;
    border-radius: var(--panel-radius);
    background: var(--lime);
    color: var(--ink);
}
.calendar-banner-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--ink);
    color: white;
    font-size: 1.55rem;
    line-height: 1;
}
.calendar-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.calendar-banner-copy strong {
    display: block;
    font-size: 1.08rem;
}
.calendar-banner-copy p {
    margin: 0.1rem 0 0;
}
.calendar-banner .calendar-feed {
    flex: 0 0 auto;
    background: var(--surface);
    border-color: var(--ink);
    color: var(--ink);
}
@media (max-width: 600px) {
    .calendar-banner {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
    .calendar-banner-copy {
        flex: 1 1 calc(100% - 3.5rem);
    }
    .calendar-banner .calendar-feed {
        width: 100%;
    }
}
/* Invito alla Fam: stessa forma della fascia calendario, in blu per distinguerla. */
.community-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.35rem 0;
    padding: 1.15rem 1.3rem;
    border-radius: var(--panel-radius);
    background: var(--blue);
    color: white;
}
.community-banner-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--lime);
    color: #17182d;
}
.community-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
}
.community-banner-copy strong {
    display: block;
    font-size: 1.08rem;
}
.community-banner-copy p {
    margin: 0.1rem 0 0;
}
.community-banner .community-banner-link {
    flex: 0 0 auto;
    background: var(--lime);
    border-color: var(--lime);
    color: #17182d;
}
.community-banner .community-banner-link:hover {
    background: white;
    border-color: white;
}
@media (max-width: 600px) {
    .community-banner {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
    .community-banner-copy {
        flex: 1 1 calc(100% - 3.5rem);
    }
    .community-banner .community-banner-link {
        width: 100%;
    }
}
[data-theme='dark'] .community-banner {
    background: #2a2f7a;
}
[data-theme='dark'] .community-banner a.community-banner-link {
    background: var(--lime);
    border-color: var(--lime);
    color: #17182d;
}
[data-theme='dark'] .community-banner a.community-banner-link:hover {
    background: white;
    border-color: white;
}
/* Conferma della prenotazione: evento in evidenza, proposta delle push e invito alla donazione. */
.booking-push,
.booking-calendar {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: var(--blue-tint);
}
.booking-push p,
.booking-calendar p {
    margin: 0 0 0.6rem;
}
.booking-push p:last-child,
.booking-calendar p:last-child {
    margin: 0;
}
.donation-invite {
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: var(--lime);
    color: #17182d;
}
.donation-invite h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
}
.donation-invite p {
    margin: 0 0 0.8rem;
}
.donation-invite a.donation-link {
    background: #17182d;
    border-color: #17182d;
    color: white;
}
.donation-invite a.donation-link:hover {
    background: var(--blue);
    border-color: var(--blue);
}
[data-theme='dark'] .booking-push,
[data-theme='dark'] .booking-calendar {
    background: #2a2f52;
}
[data-theme='dark'] .donation-invite a.donation-link {
    background: #17182d;
    color: white;
}
[data-theme='dark'] .donation-invite a.donation-link:hover {
    background: #2a2f7a;
}
/* Anteprima di una bozza: etichetta in cima e «Prenota» visibile ma non attivo. */
.preview-badge {
    display: inline-block;
    margin: 0 0 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--lime);
    color: #17182d;
    font-size: 0.8rem;
    font-weight: 700;
}
.event-preview .dialog-actions button:disabled {
    cursor: not-allowed;
}
/* «Migliora testo»: indicazioni, proposta e riferimenti nella stessa finestra. Il suggerimento si ancora all'etichetta. */
.proposal-dialog label {
    position: relative;
}
.proposal-dialog .markdown-preview {
    border: 1px solid var(--border);
    border-radius: 12px;
}
.proposal-sources {
    overflow-wrap: anywhere;
}
.review-warning {
    margin: 0.75rem 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #f5a623;
    border-left-width: 6px;
    border-radius: 10px;
}
.review-warning .review-chip {
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.review-warning p {
    margin: 0.45rem 0 0;
}
/* Luogo: nome del posto in evidenza, indirizzo con il collegamento alla mappa sulla riga sotto. */
.event-place .event-venue {
    display: block;
    color: var(--ink);
    font-weight: 700;
}
/* «Hai domande su questo evento?» sotto la descrizione e nella conferma della prenotazione. */
.event-question,
.booking-question {
    margin: 0.9rem 0 0;
    color: var(--muted);
}
p button.link-button {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
p button.link-button:not(:disabled):hover {
    background: none;
    color: var(--blue-strong);
    box-shadow: none;
}
[data-theme='dark'] p button.link-button,
[data-theme='dark'] p button.link-button:not(:disabled):hover {
    background: none;
    color: #aab0ff;
}
/* «Elimina il mio account»: in fondo a «I miei eventi», piccola e rossa, lontana dalle azioni di tutti i giorni. */
.account-deletion {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}
.account-deletion button.link-button,
.account-deletion button.link-button:not(:disabled):hover {
    color: #a8323e;
}
[data-theme='dark'] .account-deletion button.link-button,
[data-theme='dark'] .account-deletion button.link-button:not(:disabled):hover {
    color: #ffb7c2;
}
.calendar-subscription-steps {
    display: grid;
    gap: 0.8rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}
.calendar-subscription-steps p {
    margin: 0.2rem 0 0;
}
.switcher button[aria-pressed='true'] {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}
.empty-state {
    border: 1px dashed var(--border-strong);
    border-radius: var(--panel-radius);
    padding: clamp(1.1rem, 4vw, 2rem);
    color: var(--muted);
    background: #fafbfe;
}
.empty-state h2 {
    color: var(--ink);
    font-size: 1.18rem;
    margin-bottom: 0.3rem;
}
.empty-state p,
.event-meta:empty {
    margin: 0;
}
#login,
#complete,
#edit {
    margin-block: 1rem;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.85rem;
}
.catalog-grid:empty {
    display: none;
}
.event-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 0.85rem 1rem;
    border-radius: var(--panel-radius) var(--panel-radius) 6px var(--panel-radius);
    margin: 0;
    animation: panel-in 240ms ease-out both;
}
.event-card:not(.past):hover {
    border-color: var(--border-strong);
}
.event-card h2,
.staff-event h2 {
    color: var(--ink);
    margin: 0.35rem 0;
    overflow-wrap: anywhere;
}
.event-card h2 {
    font-size: clamp(1.16rem, 2.75vw, 1.55rem);
    letter-spacing: -0.035em;
}
.event-card.past h2 {
    color: inherit;
}
.event-card-actions {
    grid-column: 2;
    min-width: 0;
}
.event-card-actions:empty {
    display: none;
}
/* Schede affiancate alte uguali: lo spazio in più va sotto il contenuto, con la riga e i pulsanti sempre in fondo. */
.catalog-grid .event-card {
    grid-template-rows: auto 1fr;
}
.catalog-grid .event-card-actions {
    align-self: end;
    grid-column: 1 / -1;
    border-top: 1px dashed var(--border);
    padding-top: 0.7rem;
}
.catalog-grid .event-card-actions .row {
    justify-content: flex-end;
}
.event-meta.catalog-address {
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
}
.event-meta {
    color: var(--muted);
    margin: 0;
    font-size: 0.91rem;
    overflow-wrap: anywhere;
}
.event-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.4rem;
}
.date-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    justify-content: center;
    width: 4rem;
    min-height: 4.3rem;
    padding: 0.3rem 0.2rem;
    border: 1px solid #e4e5f9;
    border-radius: 9px 9px 4px 9px;
    background: var(--blue-tint);
    color: var(--blue-strong);
    font-weight: 500;
    text-align: center;
    line-height: 1.12;
}
.date-tile strong {
    font-size: 1.58rem;
    font-weight: 500;
}
.date-tile span {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.date-tile span.date-weekday {
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
}
.date-tile small {
    margin-top: 0.12rem;
    font-size: 0.72rem;
    color: var(--muted);
}
:is(.event-card, .staff-event, .modal-event-meta):has(.tag-online) > .date-tile {
    color: #333f10;
    border-color: #e1e9bc;
    background: #edf4d2;
}
.past .date-tile {
    background: #e6e8ee;
    color: #45495c;
}
.past:has(.tag-online) > .date-tile {
    background: #e6e8ee;
    color: #45495c;
    border-color: var(--border);
}
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.38rem;
    border-radius: 5px;
    padding: 0.06rem 0.48rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #434b63;
    background: #eff1f6;
}
.tag-online {
    color: #414d15;
    background: #ecf3ce;
}
.tag-dal-vivo {
    color: #272a8c;
    background: #ebedff;
}
.tag-limited,
.tag-closed,
.status-draft,
.status-postponed {
    color: #734515;
    background: #fff0d9;
}
.status-published {
    color: #20543b;
    background: #e5f4eb;
}
.status-cancelled {
    color: #8a2436;
    background: #ffedf1;
}
.past .tag {
    color: #50566a;
    background: #e6e8ee;
}
.entry-panel,
.event-page {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px 18px 6px 18px;
    border-top: 3px solid var(--blue);
    padding: clamp(1.25rem, 5vw, 3rem);
    box-shadow: var(--shadow);
    animation: panel-in 240ms ease-out both;
}
.entry-panel {
    max-width: 38rem;
    margin: clamp(1rem, 6vw, 4rem) auto;
}
.entry-panel h1 {
    font-size: clamp(1.9rem, 5vw, 2.75rem);
}
.entry-panel form > button {
    margin-top: 0.35rem;
}
/* Accedi con Google: pulsante chiaro con il logo a colori, come chiedono le linee guida di Google. */
button.google-login {
    gap: 0.65rem;
    min-height: 2.75rem;
    padding-inline: 1rem;
    background: #fff;
    color: #1f1f1f;
    border-color: #747775;
    font-weight: 500;
}
button.google-login:not(:disabled):hover {
    background: #f8f9fa;
    border-color: #5f6368;
}
/* «oppure» tra Google e il link email, con una riga ai lati. */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block: 1.25rem 0.75rem;
    color: var(--muted);
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}
#google-error:empty {
    display: none;
}
/* Il distintivo di reCAPTCHA sta in fondo al modulo di accesso, sotto il pulsante che protegge. */
#login:has(.grecaptcha-badge) {
    display: grid;
}
#login:has(.grecaptcha-badge) > button {
    justify-self: start;
}
#login > div:has(.grecaptcha-badge) {
    order: 1;
    margin-top: 1.25rem;
}
/* Schermate di esito: sotto il testo, come proseguire. */
.outcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-block: 1.4rem 0;
}
.entry-panel > [data-event-details] {
    margin-block-end: 1rem;
}
.attendance-actions {
    margin-top: 1.1rem;
}
.booking-note {
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    background: #eef0ff;
    padding: 0.8rem 0.95rem;
    overflow-wrap: anywhere;
}
.field-error {
    color: #8a2436;
    font-weight: 500;
}
.field-error:empty {
    margin: 0;
}
.dialog-error:not(:empty) {
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    background: #ffedf1;
}
.event-address-link {
    color: var(--blue);
    text-underline-offset: 0.18em;
}
.address-field {
    position: relative;
}
.address-field input {
    padding-inline-end: 3rem;
}
.maps-toggle {
    position: absolute;
    inset-block: 2px;
    inset-inline-end: 2px;
    width: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--blue);
}
.maps-toggle:hover,
.maps-toggle[aria-expanded='true'] {
    background: #eef0ff;
}
.maps-toggle:focus-visible {
    outline-offset: -2px;
}
.magnifier {
    position: relative;
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    margin: 0 0.2rem 0.2rem 0;
}
.magnifier::after {
    content: '';
    position: absolute;
    width: 0.42rem;
    height: 2px;
    top: 100%;
    left: 90%;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left;
}
.maps-search {
    margin-top: 0.45rem;
}
.maps-widget gmp-place-autocomplete {
    display: block;
    width: 100%;
    color-scheme: light;
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--control-radius);
    color: inherit;
    font: inherit;
}
.booking-notes-input {
    min-height: 4.75rem;
    margin-top: 0.7rem;
    resize: vertical;
}
.personal-booking { margin: 0.5rem 0 1rem; }
.personal-booking .tag { white-space: normal; line-height: 1.4; padding: 0.35rem 0.65rem; }
.booking-notes-count {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 0.7rem;
    text-align: right;
}
.booking-notes {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.modal-event-meta {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding-block: 0.25rem 0.75rem;
}
.modal-event-meta p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.modal-event-meta > .date-tile {
    flex-shrink: 0;
}
.event-deadlines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.25rem 0 1rem;
}
.event-deadlines > div {
    flex: 1 1 14rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--control-radius);
    background: var(--surface);
}
.event-deadlines dt { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; }
.event-deadline-offset { white-space: nowrap; }
.event-deadlines dd { margin: 0.2rem 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.event-page {
    max-width: 48rem;
    margin-inline: auto;
}
.event-page h1 {
    margin-top: 1.25rem;
    overflow-wrap: anywhere;
}
.event-share {
    margin-bottom: 1rem;
}
.event-share-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.event-share-controls input {
    flex: 1 1 16rem;
    min-width: 0;
    margin: 0;
}
#edit :is(label, legend, .editor-label),
.event-share label {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 300;
}
.editor-note {
    margin-block: 0.4rem 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: italic;
    line-height: 1.4;
}
.editor-note:empty {
    margin: 0;
}
#edit :is(input, select, textarea),
.event-share-controls input {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 300;
}
#edit label > :is(input:not([type='checkbox']), select, textarea) {
    margin-top: 0.3rem;
}
#edit .grid label {
    margin: 0;
}
#meeting .row {
    margin-block-start: 0.7rem;
}
.roster-table {
    max-height: 50dvh;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}
/* Le intestazioni vanno a capo solo tra una parola e l'altra. */
.roster-table th {
    overflow-wrap: normal;
    word-break: normal;
}
.roster-table thead {
    position: sticky;
    top: 0;
    background: #eef0fa;
}
.roster-table tbody tr:last-child td {
    border: 0;
}
.roster-summary {
    color: var(--muted);
    margin-bottom: 1rem;
}
.roster-summary strong {
    color: var(--ink);
    font-size: 1.18rem;
}
.staff-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1.3rem;
    margin: 0.5rem 0 1.35rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.staff-heading h1 {
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3.35rem);
    margin: 0;
}
.staff-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--panel-radius) var(--panel-radius) 6px var(--panel-radius);
    box-shadow: var(--shadow);
}
.staff-controls {
    padding: clamp(0.8rem, 2.5vw, 1.35rem);
    border-bottom: 1px solid var(--border);
    border-radius: var(--panel-radius) var(--panel-radius) 0 0;
    background: #f9f9fd;
}
.staff-controls .switcher {
    margin: 0 0 0.9rem;
}
.switcher button {
    border-radius: var(--control-radius);
    padding: 0.41rem 0.8rem;
}
:is(.staff-controls, .personal-events) .switcher button span {
    background: var(--blue-tint);
    color: var(--blue-strong);
    margin-left: 0.2rem;
    padding-inline: 0.36rem;
    border-radius: 4px;
    font-size: 0.78rem;
}
.staff-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 0.75rem;
    max-width: none;
}
.staff-filters label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}
.staff-filters input,
.staff-filters select {
    box-sizing: border-box;
    height: 2.65rem;
    margin-top: 0.23rem;
    color: var(--ink);
}
.staff-filters select:disabled {
    background: #f1f2f6;
    color: var(--muted);
}
.staff-total {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--muted);
    margin: 0.8rem clamp(0.8rem, 2.5vw, 1.35rem) 0.45rem;
}
.staff-results {
    padding: 0 clamp(0.8rem, 2.5vw, 1.35rem) 0.85rem;
}
.staff-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.85rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--border);
    animation: panel-in 190ms ease-out both;
}
.staff-event:last-child {
    border-bottom: 0;
}
.staff-event:has(.action-menu[open]),
.booking-card:has(.action-menu[open]) {
    position: relative;
    z-index: 2;
}
.staff-event h2 {
    font-size: clamp(1.06rem, 2.35vw, 1.24rem);
    letter-spacing: -0.025em;
}
.staff-event .date-tile {
    align-self: center;
}
.staff-event-actions,
.staff-event-buttons {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}
.staff-event-actions {
    position: relative;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 20rem;
}
.staff-event-buttons {
    margin-inline-start: auto;
}
.staff-occupancy {
    color: var(--muted);
    font-size: 0.84rem;
    white-space: nowrap;
}
.staff-capacity {
    display: block;
    appearance: none;
    width: 100%;
    min-width: 4rem;
    height: 4px;
    margin-top: 0.2rem;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    background-color: var(--blue-tint);
    color: var(--blue);
}
.staff-capacity::-webkit-progress-bar {
    background-color: var(--blue-tint);
}
.staff-capacity::-webkit-progress-value {
    background-color: var(--blue);
}
.staff-capacity::-moz-progress-bar {
    background-color: var(--blue);
}
.staff-results button,
.action-menu summary,
.booking-card .event-card-actions > .button,
.staff-pager button {
    font-size: 0.88rem;
}
.action-menu {
    position: relative;
}
.action-menu summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
}
.action-menu summary::-webkit-details-marker {
    display: none;
}
.action-menu summary::after {
    content: '';
    width: 0.35rem;
    height: 0.35rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-0.1rem) rotate(45deg);
}
.action-menu summary:hover,
.action-menu[open] summary {
    background: var(--blue-tint);
    color: var(--blue-strong);
}
.action-menu-items {
    position: absolute;
    inset-block-start: calc(100% + 0.35rem);
    inset-inline-end: 0;
    display: grid;
    width: min(15rem, calc(100vw - 3rem));
    padding: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px 11px 4px 11px;
    box-shadow: 0 8px 24px #171b4a22;
    animation: panel-in 140ms ease-out both;
}
.action-menu-items :is(button, a) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: start;
    text-decoration: none;
}
.action-menu-items :is(button, a):hover {
    background: #eef0ff;
    box-shadow: none;
}
.action-menu-items :is(button, a):focus-visible {
    outline-offset: -2px;
}
.action-menu-items button.danger {
    color: #961c2b;
}
.action-menu-items button.danger:hover {
    background: #ffedf1;
}
.action-menu:not([open]) .action-menu-items {
    display: none;
}
/* Menu delle schede staff: solo l'ingranaggio, senza testo né freccia. */
:is(a.button, button).icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.6rem;
}
.action-menu-icon summary {
    justify-content: center;
    padding-inline: 0.6rem;
}
.action-menu-icon summary::after {
    display: none;
}
/* Sezioni del menu: Coordinamento per coordinatori e admin, Amministrazione solo per gli admin. */
.action-menu-section {
    display: grid;
}
.action-menu-section + .action-menu-section {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border);
}
.action-menu-heading {
    margin: 0;
    padding: 0.35rem 0.65rem 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.action-menu-items button:disabled {
    cursor: not-allowed;
    background: transparent;
}
.staff-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    padding: 0.8rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}
.availability-alerts h2 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}
.availability-alerts ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.availability-alerts li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem 1rem;
}
.personal-events .switcher {
    margin-top: 0;
}
.booking-card {
    margin-bottom: 0.8rem;
}
.booking-card .event-card-actions {
    grid-column: 1 / -1;
    justify-self: end;
    justify-content: flex-end;
}
@media (min-width: 761px) {
    .booking-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .booking-card .event-card-actions {
        grid-column: 3;
        align-self: center;
    }
}
.hour-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.hour-chips-list:not(:empty) {
    margin-bottom: 0.4rem;
}
.hour-chips-list .hour-chip {
    padding: 0.3rem 0.65rem;
    min-height: 1.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
.hour-chips-field .field-error:empty {
    display: none;
}
.preferences-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    max-width: none;
    margin-bottom: 1rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #dfe6bf;
    border-inline-start: 3px solid var(--lime);
    border-radius: var(--control-radius);
    background: #f8fbe9;
}
.preferences-strip label {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.94rem;
}
.preferences-strip input[type='checkbox'] {
    flex: none;
    margin: 0;
}
.preferences-strip button {
    font-size: 0.92rem;
}
.notification-preferences {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.notification-preferences .preferences-strip {
    margin-bottom: 0;
    align-content: start;
}
.notification-preferences h2 {
    margin: 0;
    font-size: 1.05rem;
}
.announcement-preferences {
    grid-template-columns: minmax(0, 1fr);
}
.announcement-channels {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.announcement-push-channel {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}
.announcement-push-channel label:has(input:disabled) {
    color: var(--muted);
}
.announcement-push-channel input:disabled {
    pointer-events: none;
}
.announcement-push-channel .channel-help {
    inline-size: 1.5rem;
    min-block-size: 1.5rem;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}
.channel-hint {
    visibility: hidden;
    position: absolute;
    z-index: 3;
    inset-inline-start: 0;
    inset-block-end: 100%;
    inline-size: min(16rem, 100%);
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: var(--control-radius);
    background: var(--ink);
    color: white;
    font-size: 0.84rem;
    line-height: 1.4;
}
.announcement-push-channel .channel-help[aria-expanded='true'] + .channel-hint {
    visibility: visible;
}
@media (hover: hover) {
    .announcement-push-channel:not([data-hint-dismissed]):hover .channel-hint {
        visibility: visible;
    }
}
@media (max-width: 760px) {
    .notification-preferences {
        grid-template-columns: minmax(0, 1fr);
    }
}
.notification-preferences .push-preference {
    align-content: center;
}
.push-preference p {
    margin: 0;
}
.push-devices-intro {
    margin: 0 0 1.25rem;
}
.push-devices {
    display: grid;
    gap: 1rem;
}
.push-devices h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}
.push-devices p {
    margin: 0 0 0.55rem;
}
.push-device-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.push-device-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}
.push-device-list li p {
    margin: 0.25rem 0 0;
}
@media (max-width: 1000px) {
    .push-preference {
        grid-template-columns: 1fr;
    }
    .push-preference button {
        justify-self: start;
    }
}
@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes hero-ticket-in {
    from {
        opacity: 0;
        transform: translateY(24px) rotate(-7deg) scale(0.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (max-width: 760px) {
    .bar:has(.bar-account:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .bar-account {
        grid-column: 1 / -1;
        max-width: none;
        padding-top: 0.55rem;
        border-top: 1px solid var(--border);
    }
    .catalog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .staff-event {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .staff-event-actions {
        grid-column: 2;
        justify-content: flex-start;
        max-width: none;
    }
    .hero-art {
        opacity: 0.75;
        right: -8%;
    }
}
@media (max-width: 550px) {
    .bar {
        column-gap: 0.5rem;
        padding-block: 0.65rem;
    }
    .brand span {
        display: none;
    }
    .bar-nav a {
        font-size: 0.94rem;
        padding-inline: 0.7rem;
    }
    .bar-account {
        padding-top: 0.45rem;
    }
    .mode-grid {
        gap: 0.65rem;
    }
    .mode-card {
        min-height: 7.25rem;
        justify-content: flex-start;
        padding: 0.78rem;
        font-size: clamp(1.26rem, 5vw, 1.55rem);
    }
    .mode-icon {
        position: relative;
        inset: auto;
        translate: none;
        width: 2.1rem;
        height: 2.1rem;
        margin-bottom: 0.55rem;
    }
    .mode-card small {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    /* La chip «N eventi in arrivo» resta in fondo alla scheda: allineata anche se il testo sopra va a capo. */
    .mode-card .mode-count {
        margin-top: auto;
    }
    .mode-arrow {
        top: 1rem;
        right: 0.65rem;
        translate: none;
        font-size: 1.15rem;
    }
    .hero-art {
        width: 69%;
        opacity: 0.62;
        right: -25%;
        mask-image: linear-gradient(90deg, transparent 5%, #000 47%);
    }
    .page-intro h1 {
        font-size: clamp(1.9rem, 9.1vw, 2.95rem);
    }
    .page-intro p {
        max-width: 23ch;
    }
    .event-card {
        gap: 0.65rem;
    }
    .event-card-actions,
    .staff-event-actions {
        grid-column: 1 / -1;
    }
    .catalog-grid .event-card-actions > .row > * {
        flex: 1 1 8rem;
    }
    .catalog-grid .event-card-actions > .row > .share-button {
        flex: 0 0 3rem;
    }
    button:not(.mode-card),
    .button,
    .event-card-actions .button,
    .event-card-actions button,
    .switcher button,
    .staff-event-actions button,
    .action-menu summary,
    .action-menu-items a,
    .preferences-strip button,
    dialog button,
    .dialog-actions .button,
    .calendar-options .button {
        min-height: 44px;
    }
    .event-card-actions .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .booking-card .event-card-actions {
        gap: 0.5rem;
    }
    .booking-card .event-card-actions .button {
        padding-inline: 0.4rem;
    }
    /* Colonne in rem: due con il testo normale, una quando il testo ingrandito non ci sta. */
    .switcher {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
    }
    .staff-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .staff-filters label:first-child {
        grid-column: 1 / -1;
    }
    .date-tile {
        width: 3.15rem;
        min-height: 3.7rem;
    }
    dialog {
        --dialog-padding: clamp(0.85rem, 4vw, 1.25rem);
        width: calc(100% - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 15px 15px 5px 15px;
    }
    dialog .grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }
    dialog .grid label {
        margin: 0;
    }
    .dialog-actions:has(> :nth-child(2):last-child) {
        flex-wrap: nowrap;
    }
    .dialog-actions > button:first-child {
        flex-shrink: 0;
    }
    .dialog-actions > :is(button, .button) {
        min-width: 0;
        padding-inline: 0.65rem;
    }
    .roster-table {
        max-height: min(50dvh, 22rem);
    }
    .roster-table th,
    .roster-table td {
        padding: 0.45rem 0.35rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .loading-spinner,
    button[data-busy='true']::after {
        animation: none;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.event-language-editor {
    margin: 1rem 0;
}
.event-language-editor > [role="tabpanel"] {
    padding: 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--control-radius);
    background: #f8f9fd;
}

.appearance-menu summary.appearance-toggle {
    justify-content: center;
    width: 2.3rem;
    min-width: 2.3rem;
    min-height: 2.3rem;
    padding: 0.2rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--control-radius);
    background: var(--surface);
    color: var(--blue);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.appearance-menu summary.appearance-toggle::after {
    display: none;
}
.appearance-panel {
    width: min(17rem, calc(100vw - 2rem));
    gap: 0.5rem;
    padding: 0.75rem;
    z-index: 20;
}
.appearance-panel fieldset {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    border: 0;
}
.appearance-panel legend {
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.appearance-panel label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    margin: 0;
    padding: 0 0.4rem;
    border-radius: 7px;
    font-size: 0.94rem;
    cursor: pointer;
}
.appearance-panel label:hover {
    background: var(--blue-tint);
}
.appearance-panel input {
    margin: 0;
}
/* Aspetto e lettura: tutte le misure seguono la dimensione della radice, quindi basta cambiare quella. */
:root[data-text-size='115'] {
    font-size: 19.55px;
}
:root[data-text-size='130'] {
    font-size: 22.1px;
}
:root[data-spacing='wide'] {
    line-height: 1.8;
}
:where([data-spacing='wide']) p {
    margin-block: 1.4em;
}
:root[data-motion='reduce'] *,
:root[data-motion='reduce'] *::before,
:root[data-motion='reduce'] *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
[data-theme='dark'] {
    color-scheme: dark;
    color: #ececf7;
    background: #11121d;
    --ink: #ececf7;
    --surface: #202230;
    --muted: #c3c6d9;
    --border: #3c4053;
    --border-strong: #646b85;
    --blue: #b6bcff;
    --blue-strong: #d7dbff;
    --blue-tint: #333858;
    --shadow: 0 8px 24px #0004;
}
[data-theme='dark'] :is(header, .card, .entry-panel, .event-page, .staff-panel, dialog, .action-menu-items) {
    background: var(--surface);
    color: var(--ink);
}
[data-theme='dark'] :is(input:not([type='checkbox']), select, textarea, .markdown-source) {
    background: #181a27;
    color: var(--ink);
    border-color: var(--border-strong);
}
[data-theme='dark'] :is(.event-description, .markdown-writing-panel, .markdown-tabs, .markdown-preview,
    .event-language-editor > [role='tabpanel'], .staff-controls, .dialog-actions, .booking-note,
    .user-record, .empty-state) {
    background: #292c3d;
    color: var(--ink);
    border-color: var(--border);
}
[data-theme='dark'] :is(.mode-live, .mode-online, .preferences-strip) {
    background: #292e27;
    color: var(--ink);
    border-color: #596447;
}
[data-theme='dark'] .mode-live {
    background: var(--surface);
    border-color: var(--border);
}
[data-theme='dark'] .calendar-banner { color: #17182d; }
[data-theme='dark'] .calendar-banner-icon { background: #17182d; color: white; }
[data-theme='dark'] .calendar-banner .calendar-feed { background: #202230; border-color: #202230; color: white; }
[data-theme='dark'] button:not(.secondary, .danger, .mode-card, .maps-toggle),
[data-theme='dark'] .button:not(.secondary) {
    background: #6b8aff;
    color: #111;
}
[data-theme='dark'] :is(button:not(.secondary, .danger, .mode-card, .maps-toggle), .button:not(.secondary)):hover {
    background: #647fed;
}

[data-theme='dark'] :is(.secondary, .action-menu summary) {
    background: #292c3d;
    color: #d4d8ff;
    border-color: #737b9c;
}
/* Nel tema scuro il pulsante di chiusura del calendario e i suggerimenti di Google Maps seguono lo schema scuro. */
[data-theme='dark'] dialog:has(.calendar-options) .dialog-actions button {
    background: #292c3d;
    border-color: #737b9c;
    color: #d4d8ff;
}
[data-theme='dark'] dialog:has(.calendar-options) .dialog-actions button:hover {
    background: #383d5a;
    color: white;
}
[data-theme='dark'] .maps-widget gmp-place-autocomplete {
    color-scheme: dark;
}
[data-theme='dark'] :is(.secondary:hover, .action-menu summary:hover, .action-menu[open] summary) {
    background: #383d5a;
    color: white;
}
[data-theme='dark'] :is(.action-menu-items button, .action-menu-items a) { background: transparent; color: var(--ink); }
[data-theme='dark'] :is(.action-menu-items button:hover, .action-menu-items a:hover) { background: #383d5a; }
[data-theme='dark'] .danger { background: #38232c; color: #ffb7c2; border-color: #a75e6c; }
[data-theme='dark'] button.google-login { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-theme='dark'] button.google-login:not(:disabled):hover { background: #1f1f20; border-color: #c4c7c5; }
[data-theme='dark'] .danger:hover { background: #532c39; color: white; }
[data-theme='dark'] :is(.past, .past .date-tile, .past .tag) { background: #343642; color: #d4d5df; }
[data-theme='dark'] :is(.date-tile, .mode-count, .badge) { background: #333858; color: #e0e3ff; border-color: #555d7c; }
[data-theme='dark'] .tag { background: #353956; color: #e0e3ff; }
[data-theme='dark'] :is(.tag-online, .status-published) { background: #344337; color: #d5f3d9; }
[data-theme='dark'] :is(.tag-limited, .tag-closed, .status-draft, .status-postponed) { background: #4a3c2b; color: #ffe2b4; }
[data-theme='dark'] .status-cancelled { background: #512c38; color: #ffd2d8; }
[data-theme='dark'] :is(.date-tile small, .mode-card small, .editor-note, .muted, .event-meta, footer) { color: var(--muted); }
[data-theme='dark'] .bar-nav a { background: #6b8aff; color: #111; }
[data-theme='dark'] .bar-nav a:hover,
[data-theme='dark'] .bar-nav a[aria-current='page'] { background: #647fed; color: #111; }
[data-theme='dark'] .brand img { background: white; border-radius: 5px; padding: 3px; }
[data-theme='dark'] .skip-link { background: var(--surface); color: var(--ink); }
[data-theme='dark'] .channel-hint { background: #e8eaff; color: #17182d; }
[data-theme='dark'] :is(.field-error, .dialog-error) { color: #ffb7c2; }
/* Nel tema scuro il riquadro dell'errore è rosso scuro: il testo chiaro resta leggibile. */
[data-theme='dark'] .dialog-error:not(:empty) { background: #4a1822; border: 1px solid #8a2f42; color: #ffd5dc; }
[data-theme='dark'] .markdown-tabs button[aria-selected='true'] { background: #4a5075; color: white; border-color: #b6bcff; }
[data-theme='dark'] .switcher button[aria-pressed='true'] { background: #e3e5fa; border-color: #e3e5fa; color: #17182d; }
[data-theme='dark'] :is(.mode-card .mode-icon, .mode-card .mode-arrow) { color: white; }
[data-theme='dark'] :is(.mode-card .mode-count) { background: #404663; color: #eceeff; }

@media (max-width: 760px) {
    .bar-nav a,
    .bar-account button,
    .portal-language select,
    .appearance-menu summary.appearance-toggle {
        min-height: 44px;
    }
    .appearance-menu summary.appearance-toggle {
        width: 44px;
        min-width: 44px;
    }
    .appearance-panel label {
        min-height: 44px;
    }
}

[data-theme='dark'] .date-tile small { color: inherit; }

[data-theme='dark'] .action-menu-items button.danger {
    background: transparent;
    color: #ffb7c2;
}
[data-theme='dark'] .action-menu-items button.danger:hover {
    background: #532c39;
    color: #ffdce2;
}

[data-theme='dark'] .roster-table thead {
    background: #34394f;
    color: #f4f5ff;
}

.button.meeting-join,
[data-theme='dark'] .button.meeting-join {
    background: #c3de37;
    border-color: #c3de37;
    color: #111;
}
.button.meeting-join:hover,
[data-theme='dark'] .button.meeting-join:hover {
    background: #d0ea48;
    border-color: #d0ea48;
    color: #111;
}

[data-theme='dark'] :is(.markdown-toolbar, .expanded-tools) button.translate-action {
    background: #c3de37;
    border-color: #c3de37;
    color: #111;
}
[data-theme='dark'] :is(.markdown-toolbar, .expanded-tools) button.translate-action:not(:disabled):hover {
    background: #d0ea48;
    border-color: #d0ea48;
    color: #111;
}

/* Le card degli eventi con iscrizione confermata sono verdi, anche se l'evento è concluso. */
.event-card.booked {
    background: #eaf6ee;
    border-color: #7dc399;
}
.event-card.booked:not(.past):hover {
    border-color: #2f8f5b;
}
.event-card.booked .status-published {
    background: #1f7a4d;
    color: #fff;
}
[data-theme='dark'] .event-card.booked {
    background: #243a2d;
    border-color: #4f8a65;
}
[data-theme='dark'] .event-card.booked:not(.past):hover {
    border-color: #7dc399;
}
[data-theme='dark'] .event-card.booked .status-published {
    background: #2f7d52;
    color: #fff;
}
[data-theme='dark'] .event-card.booked .tag:not(.status-published) {
    background: #35533f;
    color: #e3f6e9;
}

/* Chip di filtro per raggruppamento, sotto il selettore del periodo. */
.tag-filter {
    margin: 0 0 1.1rem;
}
/* Tag dell'evento su schede e dettaglio: testo piccolo, senza riquadro, per non confondersi con le etichette di stato. */
.event-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.5rem;
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}
/* Tag già usati, sotto il campo dei tag: un clic li aggiunge. */
.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
.tag-suggestions .tag-suggestion {
    padding: 0.2rem 0.6rem;
    min-height: 1.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* Azione di cancellazione nella tabella Presenze. */
.roster-actions {
    text-align: right;
    white-space: nowrap;
}

/* Sezioni della maschera evento e suggerimenti accanto ai campi. */
.editor-section {
    padding: 0.2rem 0.9rem 0.8rem;
}
.editor-section > legend {
    padding-inline: 0.4rem;
    color: var(--ink);
    font-weight: 600;
}
/* Ultima parola dell'etichetta e icona del suggerimento: vanno a capo insieme. */
.keep-with-tip {
    white-space: nowrap;
}
.keep-with-tip .channel-hint {
    white-space: normal;
}
.field-tip {
    position: static;
    display: inline-block;
    margin-inline-start: 0.4rem;
    vertical-align: middle;
}
.field-tip .channel-help {
    inline-size: 1.4rem;
    min-block-size: 1.4rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0.8rem;
    line-height: 1;
}
/* Il suggerimento si ancora al campo, non all'icona, e non supera mai la sua larghezza: niente scroll orizzontale. */
#edit :is(label, legend, .hour-chips-field) {
    position: relative;
}
.field-tip .channel-hint {
    display: block;
    inline-size: min(18rem, 100%);
    max-inline-size: 100%;
    inset-inline-start: 0;
    inset-block-end: calc(100% + 0.1rem);
    font-weight: 400;
}
#edit legend .field-tip .channel-hint {
    inline-size: min(18rem, 80vw);
}
.field-tip .channel-help[aria-expanded='true'] + .channel-hint {
    visibility: visible;
}
@media (hover: hover) {
    .field-tip:not([data-hint-dismissed]):hover .channel-hint {
        visibility: visible;
    }
}
/* Voto a stelle: si colorano fino a quella scelta e, al passaggio del mouse, fino a quella sotto il puntatore. */
.star-rating,
.rating-stars {
    --star-off: #9aa1b8;
    --star-on: #f5b301;
}
.star-rating {
    display: flex;
    gap: 0.25rem;
}
.star-rating label {
    margin: 0;
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--star-off);
    transition: color 0.1s;
}
.star-rating:has(#rating-1:checked) label:nth-of-type(-n+1),
.star-rating:has(#rating-2:checked) label:nth-of-type(-n+2),
.star-rating:has(#rating-3:checked) label:nth-of-type(-n+3),
.star-rating:has(#rating-4:checked) label:nth-of-type(-n+4),
.star-rating:has(#rating-5:checked) label:nth-of-type(-n+5),
.star-rating:has(label:hover) label {
    color: var(--star-on);
}
.star-rating label:hover ~ label {
    color: var(--star-off);
}
.star-rating input:focus-visible + label {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Risposte nelle finestre Feedback: una sotto l'altra, separate da un filo. */
.feedback-summary ul {
    margin-block: 0.4rem;
    padding: 0;
    list-style: none;
}
.feedback-answers li {
    padding-block: 0.8rem;
    border-top: 1px solid var(--border);
}
.feedback-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.6rem;
    margin: 0;
}
.rating-stars {
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--star-on);
}
.rating-stars span {
    color: var(--star-off);
}
/* Voto medio: le stelle accese coprono quelle spente per la parte corrispondente al voto. */
.average-stars {
    --star-off: #9aa1b8;
    --star-on: #f5b301;
    position: relative;
    display: inline-block;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--star-off);
}
.average-stars span {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: var(--star-on);
}
.feedback-average .roster-summary {
    margin: 0;
}
.feedback-summary .feedback-sources-title {
    margin: 0.8rem 0 0;
}
.feedback-summary .feedback-sources {
    margin: 0.2rem 0 0.8rem;
}

.translation-flag {
    color: #b45309;
    font-weight: 700;
}
[data-theme='dark'] .translation-flag {
    color: #fbbf24;
}
.tag.translation-tag {
    background: #fef3c7;
    color: #78350f;
}
[data-theme='dark'] .tag.translation-tag {
    background: #4a3b12;
    color: #fde68a;
}


.notice {
    margin: 0.8rem 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.partner-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}
/* Pagina partner: il dato principale (presenze) in lime e a tutta larghezza, gli altri in azzurro. */
.partner-event strong {
    font-size: 1.05rem;
    color: var(--blue);
}
.survey-event.partner-event span {
    color: var(--ink);
    font-weight: 500;
}
.partner-figure {
    display: grid;
    flex: 1 1 9rem;
    gap: 0.2rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: var(--blue-tint);
    color: var(--blue-strong);
}
.partner-figure strong {
    font-size: 2rem;
    line-height: 1.1;
    color: var(--blue);
}
.partner-figure-main {
    flex-basis: 100%;
    background: var(--lime);
    color: #17182d;
}
.partner-figure-main strong {
    font-size: 3.2rem;
    color: #17182d;
}
[data-theme='dark'] .partner-figure:not(.partner-figure-main) {
    background: #2a2f52;
    color: #d6d9ff;
}
[data-theme='dark'] .partner-figure:not(.partner-figure-main) strong,
[data-theme='dark'] .partner-event strong {
    color: #aab0ff;
}
.editor-subgroup-title {
    margin: 0 0 0.4rem;
    font-weight: 600;
}

/* Intestazione su mobile: tre righe ordinate. In alto logo, tema e lingua; poi i link a tutta larghezza;
   infine l'account con il nome che si accorcia invece di spingere i pulsanti. */
.bar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
@media (max-width: 760px) {
    .bar,
    .bar:has(.bar-account:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            'brand theme language'
            'links links links'
            'account account account';
        row-gap: 0.6rem;
        column-gap: 0.4rem;
    }
    .brand {
        grid-area: brand;
    }
    .brand img {
        width: 8.5rem;
        min-width: 8.5rem;
    }
    .bar-nav {
        display: contents;
    }
    .appearance-menu {
        grid-area: theme;
    }
    .portal-language {
        grid-area: language;
    }
    .bar-links {
        grid-area: links;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
        gap: 0.4rem;
    }
    .bar-links a {
        width: 100%;
    }
    .bar-account {
        grid-area: account;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.4rem;
    }
    #account-email {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow-wrap: normal;
    }
}

@media (max-width: 760px) {
    /* Iscrizioni: i pulsanti occupano tutta la larghezza della card, in parti uguali. */
    .booking-card .event-card-actions {
        justify-self: stretch;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    }
    .booking-card .event-card-actions > *,
    .booking-card .event-card-actions .action-menu summary {
        width: 100%;
        justify-content: center;
    }
    /* Periodi dello staff: etichetta e contatore sulla stessa riga. */
    .switcher button {
        white-space: nowrap;
        padding-inline: 0.5rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 760px) {
    /* Card delle iscrizioni: l'azione principale a tutta riga, le altre affiancate. */
    .booking-card .event-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .booking-card .event-card-actions > a.button:not(.secondary) {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    /* Presenze: ogni prenotazione è una scheda con le etichette delle colonne. */
    .roster-table {
        overflow: visible;
        border: 0;
    }
    .roster-table table,
    .roster-table tbody,
    .roster-table tr,
    .roster-table td {
        display: block;
        width: 100%;
    }
    .roster-table thead {
        display: none;
    }
    .roster-table tr {
        margin-bottom: 0.6rem;
        padding: 0.6rem 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--control-radius);
    }
    .roster-table td,
    .roster-table tbody tr:last-child td {
        display: grid;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.2rem 0;
        border: 0;
        overflow-wrap: anywhere;
    }
    .roster-table td[data-label]::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.85rem;
    }
    .roster-table td.roster-name {
        display: block;
        font-weight: 600;
        font-size: 1.02rem;
    }
    .roster-table td.roster-name::before {
        content: none;
    }
    .roster-table td.roster-actions {
        display: block;
        padding-top: 0.4rem;
    }
    .roster-table td.roster-actions button {
        width: 100%;
    }
}
.editor-subgroup + .editor-subgroup {
    margin-top: 0.8rem;
}
/* Casella accanto a un campo nella stessa griglia: allineata all'altezza del campo. */
#edit .grid .grid-checkbox {
    align-self: end;
    margin-bottom: 0.75rem;
}
/* Nel modulo evento un campo da solo in una riga resta largo mezza riga, come gli altri: le colonne non si allargano. */
#edit .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
/* Le quattro impostazioni delle iscrizioni restano in due colonne, con i campi allineati anche se un'etichetta va a capo. */
#edit #booking-section > .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
#edit #booking-section > .grid > label {
    align-self: end;
}
/* Il suggerimento accanto al titolo di una sezione ha una larghezza propria, non quella del titolo. */
#edit legend .field-tip .channel-hint {
    inline-size: min(22rem, calc(100vw - 4rem));
    max-inline-size: none;
}

/* Account: una voce discreta, diversa dai pulsanti del menu, che apre nome ed Esci. */
.account-menu {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
}
.account-menu .account-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 2.3rem;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
.account-menu .account-summary:hover,
.account-menu[open] .account-summary {
    background: var(--blue-tint);
    color: var(--ink);
}
.account-avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    border-radius: 50%;
    background: var(--lime);
    color: #17182d;
    font-size: 0.85rem;
    font-weight: 700;
}
.account-menu #account-email {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: inherit;
}
.account-address {
    margin: 0;
    padding: 0.45rem 0.65rem 0.55rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}
[data-theme='dark'] .account-menu .account-summary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
[data-theme='dark'] .account-menu .account-summary:hover,
[data-theme='dark'] .account-menu[open] .account-summary {
    background: #2c3150;
}
.bar-account {
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 760px) {
    .bar-account {
        justify-content: flex-start;
    }
    .account-menu .action-menu-items {
        inset-inline-end: auto;
        inset-inline-start: 0;
    }
}
/* L'account è solo l'iniziale: niente nome nella barra, nome ed email nel menu. */
.account-menu .account-summary {
    padding: 0.25rem 0.45rem 0.25rem 0.3rem;
    gap: 0.3rem;
}
.account-address {
    display: grid;
    gap: 0.15rem;
}
.account-address strong {
    color: var(--ink);
    font-size: 0.9rem;
}
.account-address strong:empty {
    display: none;
}
@media (max-width: 760px) {
    /* Su mobile l'iniziale sta nella prima riga, accanto a tema e lingua. */
    .bar,
    .bar:has(.bar-account:not([hidden])) {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        grid-template-areas:
            'brand theme language account'
            'links links links links';
    }
    .bar-account {
        padding-top: 0;
        border-top: 0;
    }
    .account-menu .action-menu-items {
        inset-inline-start: auto;
        inset-inline-end: 0;
    }
}
/* Aspetto sul telefono */
@media (max-width: 760px) {
    .appearance-menu {
        position: static;
    }
    .appearance-panel {
        inset-inline: 1rem;
        inset-block-start: auto;
        width: auto;
        margin-top: 0.35rem;
    }
}
/* L'intestazione e i suoi menu stanno sopra il contenuto della pagina, banner compresi. */
header {
    position: relative;
    z-index: 30;
}

/* Menu a tendina: freccia disegnata e staccata dal bordo destro, nel colore del tema. File del sito, non data: URI, che la CSP blocca. */
:root {
    --select-arrow: url("/brand/select-arrow.svg");
}
[data-theme='dark'] {
    --select-arrow: url("/brand/select-arrow-dark.svg");
}
:root select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.75rem;
}
#community-section:disabled {
    opacity: 0.6;
}
/* Nota di anonimato del sondaggio: in evidenza con il verde del sito, testo scuro in entrambi i temi. */
.notice.notice-anonymous {
    border-color: var(--lime);
    background: var(--lime);
    color: #17182d;
}
/* «Hai domande su questo evento?» nel dettaglio, nella prenotazione e nella pagina dell'evento: stesso riquadro verde. */
.event-question {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--lime);
    border-radius: 8px;
    background: var(--lime);
    color: #17182d;
}
.event-question button.link-button,
p.event-question button.link-button:not(:disabled):hover,
[data-theme='dark'] p.event-question button.link-button,
[data-theme='dark'] p.event-question button.link-button:not(:disabled):hover {
    background: none;
    color: #17182d;
    font-weight: 700;
}
/* Sondaggio: evento e data in evidenza sotto il titolo, con la barra d'accento del sito. */
.survey-event {
    margin: 0.4rem 0 1.2rem;
    padding: 0.2rem 0 0.2rem 0.9rem;
    border-inline-start: 4px solid var(--lime);
}
.survey-event strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}
.survey-event span {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
}
/* Dopo la data, luogo e dettagli personali restano in secondo piano. */
.survey-event.event-summary span + span {
    color: var(--ink);
    font-weight: 400;
}
/* Spunti dei commenti: un elenco su più righe, più largo dei suggerimenti dello staff. */
.feedback-comment {
    position: relative;
}
.feedback-comment .channel-hint {
    white-space: pre-line;
    inline-size: min(24rem, 100%);
    font-weight: 400;
}
/* Commenti di una risposta nelle finestre Feedback: l'etichetta sopra, il testo a tutta larghezza con i suoi a capo. */
.feedback-text {
    margin: 0.6rem 0 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.feedback-text span {
    display: block;
    font-weight: 600;
}
/* Etichetta del voto accanto alle stelle: significato del voto scelto o in anteprima. */
.star-rating {
    align-items: center;
    flex-wrap: wrap;
}
.star-rating-label {
    margin-inline-start: 0.6rem;
    font-weight: 600;
}
.star-rating-label.empty {
    color: var(--muted);
    font-weight: 400;
}
/* Scheda staff senza capienza: lo spazio della barra resta, invisibile, per allineare i pulsanti. */
.staff-capacity-empty {
    visibility: hidden;
}

/* Scelta della modalità di annuncio sulla Fam: un'opzione per riga, con la spiegazione sotto. */
.choice-list {
    display: grid;
    gap: 0.6rem;
    margin: 0.4rem 0 0;
    padding: 0;
    border: 0;
}
.choice-list legend {
    margin-bottom: 0.4rem;
    font-weight: 700;
}
.choice-list > label {
    display: block;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
}
.choice-list > label:has(input:checked) {
    border-color: var(--blue);
}
.choice-list > label:has(input:disabled) {
    cursor: default;
    color: var(--muted);
}
.choice-list > label .muted {
    display: block;
    margin-top: 0.2rem;
    padding-left: 1.6rem;
    font-size: 0.9rem;
}

/* Perché una scelta non è disponibile, sotto la sua descrizione. */
.choice-list > label .choice-reason {
    display: block;
    margin-top: 0.35rem;
    padding-left: 1.6rem;
}

/* Finestra «Evento pubblicato»: un riquadro per ciascuna proposta (Fam, comunicazione), con il pulsante a lato. */
.published-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin: 0.7rem 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}
.published-offer p {
    flex: 1 1 16rem;
    margin: 0;
}
/* Ciò che è uscito nella Fam, con i link, nel riquadro crema delle email: nella conferma della pubblicazione, a riga
   intera sotto il pulsante «Annunciato», e nella finestra «Annuncia sulla Fam». */
.fam-box {
    padding: 0.6rem 0.8rem;
    border: 1px solid #efd98f;
    border-radius: 8px;
    background: #fff8e1;
    color: #17182d;
}
.fam-box p {
    margin: 0;
}
.fam-box p + p {
    margin-top: 0.35rem;
}
.published-offer .fam-box {
    flex-basis: 100%;
}
.fam-box .muted {
    color: #4e536c;
}
.fam-box a {
    color: #0e12b0;
}
[data-theme='dark'] .fam-box {
    border-color: #6b5a1f;
    background: #3a3218;
    color: #f4f0dc;
}
[data-theme='dark'] .fam-box .muted {
    color: #d8d0b0;
}
[data-theme='dark'] .fam-box a {
    color: #ffe48a;
}

/* Pagina dell'evento: «Prenota» o «Gestisci prenotazione» centrato e grande, tra la descrizione e il riquadro delle domande. */
.event-page-cta {
    margin: 1.6rem 0 1.2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.6rem;
}
.event-page-cta :is(button, a.button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* «Avvisami quando si liberano posti» sta su una riga; sui telefoni va a capo senza lasciare una parola sola. */
    width: min(100%, 24rem);
    min-height: 3.2rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    text-wrap: balance;
}

/* Punto di ritrovo: sotto il luogo, con la sua etichetta. */
.event-meeting-point {
    overflow-wrap: anywhere;
}

/* Condividi: un quadrato con la sola icona, accanto al pulsante principale. */
.event-page-cta .favorite-button.icon-button,
.event-page-cta .share-button.icon-button {
    flex: none;
    width: 3.2rem;
    padding: 0;
}
.share-text {
    width: 100%;
    resize: vertical;
}

/* Finestra «Gestisci prenotazione»: azioni una sotto l'altra, a tutta larghezza, e il link all'elenco completo. */
/* Termine scaduto: spiega perché mancano dei pulsanti. */
.notice.notice-deadline {
    border-color: #f5a623;
    border-left-width: 6px;
}
.manage-booking-actions {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0;
}
.manage-booking-actions :is(a.button, button) {
    width: 100%;
    justify-content: center;
}
.manage-booking-all {
    margin: 0.4rem 0 0;
    text-align: center;
}

/* Telefoni stretti (fino a ~380px, per esempio iPhone SE 1ª generazione e Android compatti). */
@media (max-width: 380px) {
    /* Header: logo più piccolo e voci del menu compatte, così nulla esce dai pulsanti. */
    .brand {
        min-width: 0;
    }
    .brand img {
        width: 100%;
        min-width: 0;
        max-width: 8.5rem;
    }
    .bar-nav a {
        font-size: 0.86rem;
        padding-inline: 0.45rem;
    }
    /* Filtri staff: un campo per riga, le selezioni non vengono troncate. */
    .staff-filters {
        grid-template-columns: minmax(0, 1fr);
    }
    .switcher button {
        padding-inline: 0.35rem;
        font-size: 0.9rem;
    }
}
@media (max-width: 550px) {
    /* Nelle finestre la descrizione ha meno rientri, per non stringere troppo il testo. */
    dialog .event-description {
        padding: 0.65rem 0.75rem;
    }
    dialog .rich-description :is(ul, ol) {
        padding-inline-start: 1.2rem;
    }
    /* «In programma / Eventi passati» a tutta larghezza, come i filtri dei raggruppamenti sotto. */
    .switcher {
        width: 100%;
    }
    /* «I miei eventi»: «Dettagli» occupa lo spazio della riga come nelle schede del catalogo. */
    .booking-card .event-card-actions {
        display: flex;
        flex-wrap: nowrap;
    }
    /* L'ingranaggio resta compatto accanto a «Dettagli». */
    .booking-card .event-card-actions > [data-manage-booking] {
        flex: none;
        width: auto;
    }
    .booking-card .event-card-actions > :is(button.secondary, .button) {
        flex: 1 1 auto;
    }
    /* «Accedi all’evento» ha una riga sua, così non va a capo. */
    .booking-card .event-card-actions {
        flex-wrap: wrap;
    }
    .booking-card .event-card-actions > .button.meeting-join {
        flex-basis: 100%;
    }
    .booking-card .event-card-actions > button.secondary {
        flex-basis: 0;
    }
}

/* Editor, sezione Luogo: la ricerca su Google Maps sta sopra nome del posto e indirizzo, perché li compila entrambi. */
.meeting-point-editor {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.meeting-point-editor p { margin: 0; }
.meeting-point-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.45rem;
}
.meeting-point-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 2rem;
}
.meeting-point-heading label { margin: 0; }
.meeting-point-heading button.secondary {
    min-height: 1.9rem;
    padding: 0.25rem 0.55rem;
}
.meeting-point-fields textarea {
    margin-top: 0.4rem;
    min-height: 3rem;
}
.meeting-point-editor .editor-note:not(:empty) { margin-top: 0.55rem; }
@media (max-width: 650px) {
    .meeting-point-fields { grid-template-columns: 1fr; gap: 0.4rem; }
    .meeting-point-fields textarea { min-height: 4.7rem; }
}
.maps-lookup {
    margin-bottom: 0.9rem;
}
.maps-lookup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
}
.maps-lookup .editor-note {
    margin: 0.45rem 0 0;
}

/* Con una finestra aperta la pagina sotto non scorre, nemmeno scorrendo sullo sfondo fuori dalla finestra. */
html:has(dialog[open]) {
    overflow: hidden;
}

/* «I miei eventi»: un solo riquadro per gli avvisi, con l'ingranaggio delle notifiche push in alto a destra. */
.notification-preferences {
    grid-template-columns: minmax(0, 1fr);
}
.announcement-preferences {
    grid-template-columns: minmax(0, 1fr) auto;
}
.announcement-preferences .announcement-channels {
    grid-column: 1 / -1;
}

/* Ambiente di test: fascia rossa in cima a ogni pagina, uguale nei due temi. */
.environment-banner {
    background: #c62828;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.4rem 1rem;
    text-align: center;
    text-transform: uppercase;
}
.favorite-banner {
    position: relative;
    margin-block: .9rem;
    padding: .8rem 1rem;
    border-inline-start: 3px solid #c3de37;
    border-radius: .6rem;
    background: color-mix(in srgb, #c3de37 10%, transparent);
}
.favorite-banner-title {
    display: flex;
    align-items: baseline;
}
.favorite-banner-title .field-tip { flex: none; }
.favorite-banner p { margin: .25rem 0 0; }
.favorite-button svg { fill: none; }
.favorite-button[aria-pressed="true"] svg { fill: #c3de37; }
.favorites-list { margin-block: 1rem; }
.favorites-list ul { list-style: none; padding: 0; margin: 0; }
.favorites-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding-block: .6rem;
}
.favorites-list li p { margin: .2rem 0 0; }
/* Timeline dell'evento: scorre la finestra, non la tabella, e l'orario resta su una riga. */
.timeline-table {
    max-height: none;
}
.timeline-time {
    white-space: nowrap;
}

/* Aree di tocco da telefono: almeno 44 px. Avatar e «Traduci in inglese» crescono di poco; icone «i» e il link
   «Contatta gli organizzatori» restano piccoli e si toccano su un'area invisibile più grande, senza spostare nulla. */
@media (max-width: 760px) {
    .account-menu .account-summary,
    .meeting-point-heading button.secondary {
        min-height: 44px;
    }
    .field-tip .channel-help,
    .announcement-push-channel .channel-help,
    p.event-question button.link-button {
        position: relative;
    }
    .field-tip .channel-help::after,
    .announcement-push-channel .channel-help::after {
        content: '';
        position: absolute;
        inset: -10px;
    }
    p.event-question button.link-button::after {
        content: '';
        position: absolute;
        inset: -9px -4px;
    }
}
