:root {
    --brand-primary: #84ABCC;        /* Azzurro predominante del sito */
    --brand-primary-dark: #6B94B8;   /* Variante leggermente più intensa per hover e contrasto */
    --brand-primary-soft: #EBF2F8;   /* Azzurro tenue per hover e sfondi delicati */
    --brand-navy: #23335E;           /* Blu intenso per titoli delle schede su fondo bianco */
    --brand-sky-soft: #F4F8FB;       /* Sfondo pagina azzurro chiarissimo riposante */
    --brand-green: #99C262;          /* Verde delle foglie e della collina */
    --brand-sun: #F4D000;            /* Giallo sole */
    --bg-card: #FFFFFF;              /* Sfondo schede */
    --text-main: #1C2438;            /* Testo principale */
    --text-muted: #525E75;           /* Testo secondario / estratti */
    --border-light: #D6E3EE;         /* Bordi delicati tono su tono */
    --radius-card: 14px;
    --radius-pill: 999px;
    --shadow-card: 0 4px 14px rgba(107, 148, 184, 0.12);
    --shadow-card-hover: 0 8px 24px rgba(107, 148, 184, 0.22);
    --font-logo: 'Cinzel', 'Lora', Georgia, serif;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
    font-family: inherit;
}

body {
    font-family: var(--font-sans);
    background-color: var(--brand-sky-soft);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Header azzurro #84ABCC con testo bianco e gestione Safe Area iOS */
.app-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #FFFFFF;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--brand-sun);
    box-shadow: 0 2px 12px rgba(107, 148, 184, 0.28);
}

.header-top {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    padding: 3px;
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(35, 51, 94, 0.16);
}

.app-title {
    font-family: var(--font-sans);
    font-size: clamp(1.06rem, 4.2vw, 1.48rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(35, 51, 94, 0.22);
}

.app-org {
    font-size: clamp(0.72rem, 2.7vw, 0.88rem);
    font-weight: 700;
    color: #FFF7CC;
    letter-spacing: 0.015em;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(35, 51, 94, 0.2);
}

.app-subtitle {
    font-size: clamp(0.66rem, 2.4vw, 0.82rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(35, 51, 94, 0.18);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 7px 11px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(35, 51, 94, 0.18);
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.34);
}

.icon-btn:active {
    background: rgba(255, 255, 255, 0.45);
}

/* Barra Tab Sezioni - 4 pulsanti singoli su sfondo pulito */
.tabs-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: calc(94px + env(safe-area-inset-top, 0px));
    z-index: 90;
    padding: 9px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tabs-container {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: transparent;
    border: none;
    padding: 0;
    gap: 7px;
}

.tab-btn {
    background: #FFFFFF;
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-navy);
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 8px 4px;
    border-radius: 10px;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
    background: var(--brand-primary-soft);
    color: var(--brand-navy);
}

.tab-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(107, 148, 184, 0.38);
}

/* Area Ricerca */
.search-section {
    max-width: 960px;
    margin: 10px auto 4px;
    padding: 0 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    width: 100%;
    height: 38px;
    padding: 7px 36px 7px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-card);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.25;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(107, 148, 184, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(132, 171, 204, 0.32);
}

#clear-search-btn {
    position: absolute;
    right: 8px;
    background: var(--brand-primary-soft);
    border: none;
    color: var(--brand-navy);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
    padding-left: 4px;
    font-weight: 500;
}

/* Griglia Schede */
.content-grid {
    max-width: 960px;
    margin: 12px auto 40px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--brand-primary);
}

.card:active {
    transform: scale(0.99);
}

.card-img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    background-color: var(--brand-primary-soft);
    border-bottom: 1px solid var(--border-light);
}

.card-img.card-img-event {
    object-position: top center;
}

/* Layout compatto con mini-copertina laterale per Podcast / Atti */
.card-compact-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-media-thumb {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--brand-primary-soft);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 6px rgba(35, 51, 94, 0.12);
}

.card-media-thumb.card-media-thumb-dummy {
    object-fit: contain;
    padding: 6px;
    background-color: #FFFFFF;
}

.card-compact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-compact-info .card-title {
    margin-bottom: 6px;
}

.card-compact-top.card-compact-top-podcast {
    align-items: center;
    margin-bottom: 10px;
}

.card-compact-top.card-compact-top-podcast .card-date {
    margin-bottom: 0;
}

.card-title.card-title-full {
    margin-bottom: 10px;
}

.card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Badge Categoria */
.card-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-navy);
    background: rgba(132, 171, 204, 0.24);
    border: 1px solid rgba(132, 171, 204, 0.65);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Riga Data  Ora  Luogo */
.card-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-navy);
    background: rgba(132, 171, 204, 0.18);
    border-left: 4px solid var(--brand-green);
    padding: 6px 11px;
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt.card-excerpt-podcast {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    margin-bottom: 12px;
}

.card-cta {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.card-cta.card-cta-dual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.card-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-navy);
    font-weight: 700;
}

.card-cta-spotify {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--brand-green);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(153, 194, 98, 0.35);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.card-cta-spotify:hover {
    background: #84AD4E;
}

.card-cta-spotify:active {
    transform: scale(0.97);
}

.card-cta-calendar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--brand-primary-soft);
    color: var(--brand-navy);
    border: 1px solid var(--brand-primary);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.card-cta-calendar:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.card-cta-calendar:active {
    transform: scale(0.97);
}

/* Stati caricamento e vuoto */
.loader, .empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px dashed var(--brand-primary);
}

/* Contenitore e pulsante carica anno precedente */
.load-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}

.load-more-btn {
    background: var(--bg-card);
    color: var(--brand-navy);
    border: 1.5px solid var(--brand-primary);
    border-radius: var(--radius-pill);
    padding: 11px 22px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.load-more-btn:hover:not(:disabled) {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.load-more-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.load-more-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Banner Installazione PWA con testo bianco */
.install-banner {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(35, 51, 94, 0.24);
    text-shadow: 0 1px 2px rgba(35, 51, 94, 0.16);
    z-index: 200;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-banner button {
    background: var(--brand-sun);
    color: var(--brand-navy);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-shadow: none;
    white-space: nowrap;
}

.install-banner .install-close-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    padding: 6px 10px;
    font-size: 1rem;
    line-height: 1;
}

/* Guida visiva installazione su iOS / iPadOS */
.install-banner.install-banner-ios {
    align-items: flex-start;
    padding: 14px 16px;
}

.ios-guide-title {
    font-weight: 700;
    font-size: 0.94rem;
    color: #FFF7CC;
    margin-bottom: 7px;
}

.ios-guide-steps {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #FFFFFF;
}

.ios-guide-steps li strong {
    color: #FFF7CC;
    font-weight: 700;
}

.ios-inline-icon {
    display: inline-block;
    vertical-align: -3px;
    margin: 0 2px;
    padding: 1px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    color: #FFFFFF;
}

/* Modale Dettaglio Pagina Divi con testo bianco e Safe Area iOS */
.modal {
    position: fixed;
    inset: 0;
    background: var(--bg-card);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: #FFFFFF;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 3px solid var(--brand-sun);
    box-shadow: 0 2px 8px rgba(35, 51, 94, 0.16);
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(35, 51, 94, 0.2);
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.modal-body {
    position: relative;
    flex: 1;
    width: 100%;
    background: #FFFFFF;
}

.modal-body.podcast-player-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: var(--brand-sky-soft);
}

.modal-body.podcast-player-mode #page-frame {
    width: 100%;
    max-width: 620px;
    height: 352px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(35, 51, 94, 0.16);
}

#page-frame {
    width: 100%;
    height: 100%;
    border: none;
}

#iframe-loader {
    position: absolute;
    inset: 0;
    background: var(--brand-sky-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--brand-navy);
}

@media (max-width: 400px) {
    .header-brand {
        gap: 8px;
    }
    .header-logo {
        width: 54px;
        height: 54px;
    }
    .tabs-nav {
        top: calc(86px + env(safe-area-inset-top, 0px));
    }
}

/* Evidenziazione eventi futuri / in programma */
.card.card-upcoming {
    border: 1.5px solid var(--brand-green);
    border-left: 5px solid var(--brand-green);
    background: linear-gradient(180deg, #F7FCF1 0%, #FFFFFF 38%);
    box-shadow: 0 6px 18px rgba(153, 194, 98, 0.22);
}

.card-badge.badge-upcoming {
    position: relative;
    display: inline-grid;
    align-items: center;
    background: var(--brand-green);
    color: #FFFFFF;
    border-color: var(--brand-green);
    box-shadow: 0 2px 6px rgba(153, 194, 98, 0.35);
    transition: background-color 0.85s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.85s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-badge.badge-upcoming .badge-label {
    grid-area: 1 / 1;
    transition: opacity 0.65s ease-in-out, transform 0.65s ease-in-out;
}

.card-badge.badge-upcoming .badge-label-default {
    opacity: 1;
    transform: translateY(0);
}

.card-badge.badge-upcoming .badge-label-alt {
    opacity: 0;
    transform: translateY(2px);
}

.card-badge.badge-upcoming.badge-register {
    background: #8A0F12;
    border-color: #8A0F12;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(138, 15, 18, 0.38);
}

.card-badge.badge-upcoming.badge-register .badge-label-default {
    opacity: 0;
    transform: translateY(-2px);
}

.card-badge.badge-upcoming.badge-register .badge-label-alt {
    opacity: 1;
    transform: translateY(0);
}

.card-badge.badge-today {
    background: var(--brand-sun);
    color: var(--brand-navy);
    border-color: var(--brand-sun);
}

/* Attenuazione discreta degli eventi passati */
.card.card-past {
    opacity: 0.84;
}

.card.card-past:hover {
    opacity: 1;
}

.card-badge.badge-past {
    background: #EEF2F6;
    color: var(--text-muted);
    border-color: #D6E0EA;
}

/* === PULSANTE HEADER & BOTTOM SHEET ASSOCIAZIONE === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-navy);
    border-color: #FFFFFF;
    text-shadow: none;
}

.icon-btn-info:hover {
    background: var(--brand-sun);
    border-color: var(--brand-sun);
    color: var(--brand-navy);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #FFFFFF;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .icon-btn-info .info-label {
        display: none;
    }
    .icon-btn-info {
        padding: 7px 9px;
    }
}

/* Sfondo oscurato */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 36, 56, 0.48);
    backdrop-filter: blur(2px);
    z-index: 900;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.sheet-backdrop.hidden {
    display: none !important;
}

/* Pannello a scomparsa dal basso */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    border-top: 4px solid var(--brand-sun);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 36px rgba(35, 51, 94, 0.25);
    padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    transform: translateY(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-sheet.hidden {
    display: none !important;
}

.sheet-handle-bar {
    display: flex;
    justify-content: center;
    padding: 4px 0 10px;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #CBD5E1;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.sheet-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sheet-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    padding: 2px;
    background: #FFFFFF;
}

.sheet-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.2;
}

.sheet-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sheet-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--brand-primary-soft);
    color: var(--brand-navy);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-body {
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sheet-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Pulsante in evidenza Sito Web in cima al pannello */
.sheet-cta-website {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    text-decoration: none;
    background: linear-gradient(135deg, var(--brand-sun) 0%, #E5C100 100%);
    color: var(--brand-navy);
    border: 1.5px solid #D9B600;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(244, 208, 0, 0.32);
    transition: transform 0.15s ease, filter 0.2s ease;
}

.sheet-cta-website:hover {
    filter: brightness(1.03);
}

.sheet-cta-website:active {
    transform: scale(0.99);
}

.sheet-cta-website-text {
    flex: 1;
    min-width: 0;
}

.sheet-cta-website strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand-navy);
}

.sheet-cta-website small {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(35, 51, 94, 0.82);
    margin-top: 2px;
}

.sheet-cta-arrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    flex-shrink: 0;
}

/* Pulsante Mailing List */
.sheet-cta-primary {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #324780 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(35, 51, 94, 0.22);
    transition: transform 0.15s ease, background 0.2s ease;
}

.sheet-cta-primary:active {
    transform: scale(0.99);
}

.sheet-btn-icon {
    font-size: 1.35rem;
    color: var(--brand-sun);
    flex-shrink: 0;
}

.sheet-cta-primary strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.25;
}

.sheet-cta-primary small {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

/* Pulsanti pillola Diventa Socio / 5 per mille */
.sheet-pills-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sheet-pill-btn {
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, opacity 0.2s ease;
}

.sheet-pill-btn:active {
    transform: scale(0.98);
}

.sheet-pill-socio {
    background: var(--brand-green);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 3px 10px rgba(153, 194, 98, 0.3);
}

.sheet-pill-5xmille {
    background: var(--brand-primary-soft);
    color: var(--brand-navy);
    border: 1.5px solid var(--brand-primary);
}

.sheet-section-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: -6px;
}

/* Griglia Social */
.sheet-socials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sheet-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--brand-sky-soft);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 11px 8px;
    text-decoration: none;
    color: var(--brand-navy);
    font-size: 0.8rem;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sheet-social-card:hover {
    background: #FFFFFF;
    border-color: var(--brand-primary);
}

.social-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #FFFFFF;
}

.social-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-fb {
    background: #1877F2;
    font-family: Georgia, serif;
    font-size: 1rem;
}

.social-grp {
    background: var(--brand-primary-dark);
    font-size: 0.85rem;
}

/* Footer istituzionale nel pannello */
.sheet-footer-info {
    background: var(--brand-sky-soft);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-main);
}

.sheet-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sheet-copy-btn {
    background: #FFFFFF;
    border: 1px solid var(--brand-primary);
    color: var(--brand-navy);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.sheet-copy-btn:active {
    background: var(--brand-primary);
    color: #FFFFFF;
}


/* Telefono e badge WhatsApp nel pannello */
.sheet-phone-row {
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-light);
}

.sheet-phone-link {
    color: var(--brand-navy);
    text-decoration: none;
    font-size: 0.86rem;
}

.sheet-phone-link:hover {
    text-decoration: underline;
}

.sheet-wa-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.sheet-wa-badge:hover {
    background: #1EBE5D;
}

.sheet-wa-badge:active {
    transform: scale(0.97);
}


/* === ICONE COORDINATE CON IL SITO === */
.social-ig-site {
    background: #E2C000;
}

.social-fb-site {
    background: #1877F2;
}

.social-grp-site {
    background: transparent;
    width: auto;
    height: 30px;
}

.sheet-btn-icon-site {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sheet-wa-badge-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F8EA;
    border: 1px solid #99C262;
    color: #5C8329;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px 3px 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.sheet-wa-badge-site:hover {
    background: #E4F2D6;
}

.sheet-wa-badge-site:active {
    transform: scale(0.97);
}

.wa-site-square {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #99C262;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* === AGGIORNAMENTO V4: 4 SOCIAL + PILLOLE UNIFORMI + TELEFONO NEL BOX === */
.sheet-socials-grid.sheet-socials-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.sheet-socials-grid.sheet-socials-grid-4 .sheet-social-card {
    padding: 10px 4px;
    font-size: 0.74rem;
}

.social-wa-site {
    background: #99C262;
    border-radius: 8px;
}

.sheet-pill-outline {
    background: var(--brand-primary-soft);
    color: var(--brand-navy);
    border: 1.5px solid var(--brand-primary);
}

.sheet-pill-outline:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
}


/* === FIX HEADER MOBILE & PULSANTI COMPATTI === */
.header-brand {
    flex: 1;
    min-width: 0;
}

.header-text {
    flex: 1;
    min-width: 0;
}

.app-title,
.app-org,
.app-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .app-title {
        font-size: 0.98rem;
        letter-spacing: 0.01em;
    }
    .app-org {
        font-size: 0.72rem;
    }
    .app-subtitle {
        font-size: 0.65rem;
    }
    .header-logo {
        width: 52px;
        height: 52px;
    }
}

.icon-btn-contatti {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    color: var(--brand-navy);
    border: none;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(35, 51, 94, 0.16);
}

.icon-btn-contatti:hover,
.icon-btn-contatti:active {
    background: var(--brand-sun);
    color: var(--brand-navy);
}

.icon-btn-refresh {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.icon-btn-refresh:active svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


/* === PULSANTE TONDO MENU (3 TRATTINI) UGUALE A REFRESH === */
.icon-btn-menu {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: var(--brand-navy);
    border: none;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(35, 51, 94, 0.16);
}

.icon-btn-menu:hover,
.icon-btn-menu:active {
    background: var(--brand-sun);
    color: var(--brand-navy);
}


/* === ALLINEAMENTO STABILE SCHEDE COMPACT (PODCAST E INFO) === */
.card-compact-top.card-compact-top-podcast {
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-compact-info {
    align-items: flex-start;
}

.card-compact-info .card-badge {
    margin-bottom: 6px;
}

.card-compact-info .card-date {
    width: 100%;
    font-size: 0.82rem;
    padding: 5px 10px;
    margin-bottom: 0;
    line-height: 1.35;
}


/* === ICONE TEMATICHE QUADRATO 76x76 CON COLORI PIENI DEL LOGO === */
.card-topic-thumb {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(35, 51, 94, 0.18);
}

.card-topic-thumb.topic-sky {
    background: var(--brand-primary);
    border: 2px solid var(--brand-navy);
    color: #FFFFFF;
}

.card-topic-thumb.topic-sun {
    background: var(--brand-sun);
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
}

.card-topic-thumb.topic-green {
    background: var(--brand-green);
    border: 2px solid var(--brand-navy);
    color: #FFFFFF;
}

.card-topic-thumb.topic-navy {
    background: var(--brand-navy);
    border: 2px solid var(--brand-primary);
    color: var(--brand-sun);
}
