/* =========================================================
   RADIO STUDIO PIÙ - FOGLIO STILE PRINCIPALE
   File: /studiopiu/assets/css/studiopiu.css
   Uso: stile globale sito, header, home, card, slider, sidebar,
        palinsesto, box interazione e footer player.
   ========================================================= */

/* =========================================================
   01. RESET / BASE GLOBALE
   Utilizzato in: tutte le pagine del sito
   ========================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #111;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    padding-top: 80px;
    padding-bottom: 82px;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.empty {
    color: #aaa;
}

/* =========================================================
   02. SCROLLBAR / SLIDEBAR COERENTI CON IL SITO
   Utilizzato in: slider card, lista streaming, sidebar, contenuti scrollabili
   ========================================================= */
html {
    scrollbar-width: thin;
    scrollbar-color: #b3202a #151515;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #151515;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e50914 0%, #7d0710 100%);
    border: 2px solid #151515;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff2630 0%, #b3202a 100%);
}

.card-row,
.footer-stream-cards,
.sidebar,
.site-sidebar,
.tv-panel,
.tv-card-list {
    scrollbar-width: thin;
    scrollbar-color: #b3202a rgba(255, 255, 255, .08);
}


/*BOTTONI ALTRE RADIO */
.other-radios {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    z-index: 20;
}

.other-radio-btn {
    min-width: 118px;
    height: 58px;
    border-radius: 18px;
    padding: 8px 12px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    overflow: hidden;
}

.other-radio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .36);
    filter: brightness(1.06);
}

.other-radio-btn img {
    width: auto;
    height: 24px;
    max-width: 92px;
    object-fit: contain;
    display: block;
}

.other-radio-btn span {
    font-size: 10px;
    line-height: 1.05;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.radio-ibiza {
    background: linear-gradient(135deg, #00b7ff 0%, #0077ff 48%, #00e0ff 100%);
}

.radio-607080 {
    background: linear-gradient(135deg, #ffd800 0%, #ff9f00 50%, #fff06a 100%);
    color: #171717;
}

.radio-607080 span {
    text-shadow: 0 1px 2px rgba(255, 255, 255, .45);
}

@media (max-width: 768px) {
    .other-radios {
        margin-left: auto;
        gap: 7px;
    }

    .other-radio-btn {
        min-width: 74px;
        height: 48px;
        border-radius: 14px;
        padding: 6px 7px;
    }

    .other-radio-btn img {
        height: 18px;
        max-width: 60px;
    }

    .other-radio-btn span {
        font-size: 8px;
        white-space: normal;
    }
}

/* =========================================================
   03. HEADER / MENU PRINCIPALE
   Utilizzato in: header.php
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(90deg, #b3202a 0%, #4d0008 48%, #000 100%);
    border-bottom: 5px solid #fff;
}

.site-header-inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    flex-shrink: 0;
    color: #fff;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    max-height: 58px;
}

.site-nav {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.site-nav a,
.site-nav .streaming-header-btn {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
    transition: color .18s ease;
}

.site-nav a::before,
.site-nav .streaming-header-btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .2s ease;
}

.site-nav a:hover::before,
.site-nav .streaming-header-btn:hover::before {
    width: 100%;
}

.site-nav a:hover,
.site-nav .streaming-header-btn:hover {
    color: #ffd1d1;
}

.audio-icon {
    margin-left: auto;
    border: 0;
    background: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    padding: 9px 13px;
    background: #e50914;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.site-header.is-collapsed .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header.is-collapsed .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    overflow: visible;
    white-space: normal;
    background: rgba(8, 8, 8, .98);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
}

.site-header.is-collapsed .site-nav.is-open {
    display: flex;
}

.site-header.is-collapsed .site-nav a,
.site-header.is-collapsed .site-nav .streaming-header-btn {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    text-align: left;
}

/* =========================================================
   04. HOME HERO / PLAYER TV
   Utilizzato in: index.php sezione home-hero e home-tv-grid
   ========================================================= */
.home-hero {
    padding: 45px 40px 35px;
    background: radial-gradient(circle at top, #242424 0%, #111 55%);
}

.home-tv-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(680px, 1fr) 340px;
    gap: 26px;
    align-items: stretch;
}

.tv-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

.tv-player video,
.tv-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.radio-bg-video {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 120%;
    height: 120%;
    min-width: 120%;
    min-height: 120%;
    transform: translate(-50%, -50%) scale(1.25);
    opacity: .28;
    pointer-events: none;
    filter: blur(1.5px) saturate(1.25) contrast(1.08);
}

.radio-now-playing {
    display: grid;
    gap: 6px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .10);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    min-width: min(520px, 100%);
}

.radio-now-playing small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .75;
}

.radio-now-playing strong {
    font-size: clamp(18px, 2.4vw, 30px);
}

.custom-radio-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(520px, 100%);
    padding: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .18);
}

.custom-radio-controls button {
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 900;
    padding: 11px 22px;
    cursor: pointer;
}

.custom-radio-controls input {
    width: 100%;
    accent-color: #fff;
}

/* HOME MEDIA PLAYER */
.media-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.media-tab {
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 999px;
    padding: 11px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.media-tab.active,
.media-tab:hover {
    background: #fff;
    color: #111;
}

.media-source-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 310px;
    overflow-y: auto;
    padding-right: 8px;
}

.media-source-card {
    width: 100%;
    min-height: 64px;
    text-align: left;
}

.media-source-card.active {
    background: #fff;
    color: #111;
}

.media-source-card.active strong {
    color: #e50914;
}

.media-player-area {
    position: relative;
    overflow: hidden;
}

.media-player-area iframe,
.media-player-area video {
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
    display: block;
    object-fit: cover;
}

/* BADGE STATO CARD PALINSESTO */

.content-card.palinsesto-card {
    position: relative;
}

.content-card.palinsesto-card .content-card-body {
    padding-bottom: 46px;
}

.palinsesto-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 5;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.palinsesto-badge.live {
    color: #ff1e1e;
    animation: liveBlink 1s infinite;
}

.palinsesto-badge.upcoming {
    color: #fff;
}

@keyframes liveBlink {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 0, 0, .9);
    }

    50% {
        opacity: .35;
        text-shadow: 0 0 2px rgba(255, 0, 0, .3);
    }
}

/* RADIO CARD PLAYER */
.radio-card-player {
    position: relative;
    width: 100%;
    min-height: 460px;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.radio-card-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    min-width: 160%;
    min-height: 160%;
    transform: translate(-50%, -50%) scale(1.35);
    border: 0;
    pointer-events: none;
    opacity: .30;
    filter: blur(1.5px) saturate(1.25) contrast(1.08);
}

.radio-card-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, .18), transparent 35%),
        linear-gradient(145deg, rgba(179, 32, 42, .92) 0%, rgba(77, 0, 8, .82) 46%, rgba(0, 0, 0, .88) 100%);
}

.radio-card-content {
    position: relative;
    z-index: 2;
    min-height: 460px;
    height: 100%;
    padding: clamp(18px, 5vw, 32px);
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    gap: clamp(14px, 3vw, 22px);
}

.radio-card-logo {
    width: min(48vw, 240px);
    max-height: 88px;
    object-fit: contain;
}

.radio-card-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 4vw, 22px);
}

.radio-main-btn,
.radio-nav-btn {
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.radio-main-btn {
    width: clamp(82px, 11vw, 108px);
    height: clamp(82px, 11vw, 108px);
    border-radius: 999px;
    background: #fff;
    color: #e50914;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
}

.radio-nav-btn {
    width: clamp(48px, 7vw, 66px);
    height: clamp(48px, 7vw, 66px);
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
}

.radio-nav-btn:hover {
    background: rgba(255, 255, 255, .28);
}

.radio-card-now {
    width: min(620px, 100%);
    min-width: 0;
    text-align: center;
    line-height: 1.15;
}

.radio-card-now strong,
.radio-card-now span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-card-now strong {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
}

.radio-card-now span {
    margin-top: 8px;
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 700;
    font-style: italic;
    opacity: .9;
}

.media-source-list::-webkit-scrollbar {
    width: 8px;
}

.media-source-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
}

.media-source-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e50914 0%, #7d0710 100%);
    border-radius: 999px;
}

/* MOBILE */
@media (max-width: 900px) {
    .home-tv-grid {
        display: flex;
        flex-direction: column;
    }

    .media-player-area {
        order: 1;
    }

    .media-panel {
        order: 2;
    }

    .media-player-area iframe,
    .media-player-area video,
    .radio-card-player,
    .radio-card-content {
        min-height: 320px;
    }

    .media-tabs {
        margin-top: 18px;
    }

    .media-source-list {
        max-height: 285px;
    }

    .radio-card-logo {
        width: 64vw;
        max-height: 92px;
    }

    .radio-main-btn {
        width: 86px;
        height: 86px;
        font-size: 36px;
    }

    .radio-nav-btn {
        width: 54px;
        height: 54px;
        font-size: 28px;
    }

    .radio-card-now strong {
        font-size: 24px;
    }

    .radio-card-now span {
        font-size: 16px;
    }
}

/* =========================================================
   05. SIDEBAR / PANNELLI LATERALI
   Utilizzato in: tv-panel, aside laterali, eventuale sidebar sito
   ========================================================= */
.tv-panel,
.sidebar,
.site-sidebar {
    background: linear-gradient(180deg, #202020 0%, #161616 100%);
    border: 1px solid #2d2d2d;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.tv-panel {
    padding: 18px;
}

.sidebar,
.site-sidebar {
    padding: 18px;
}

.tv-panel h2,
.sidebar h2,
.site-sidebar h2,
.sidebar-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.15;
}

.sidebar-section {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.sidebar a,
.site-sidebar a,
.sidebar-link {
    display: block;
    padding: 12px 14px;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    transition: background .18s ease, transform .18s ease;
}

.sidebar a:hover,
.site-sidebar a:hover,
.sidebar-link:hover,
.sidebar-link.active {
    background: #b3202a;
    transform: translateX(3px);
}

/* =========================================================
   06. LISTA TV / CARD CANALI
   Utilizzato in: tv-card-list e bottoni canali TV
   ========================================================= */
.tv-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tv-card {
    display: block;
    width: 100%;
    padding: 16px;
    border: 1px solid #383838;
    border-radius: 14px;
    background: #292929;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.tv-card:hover,
.tv-card.active {
    background: #b3202a;
    border-color: #e50914;
    transform: translateY(-2px);
}

.tv-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.tv-card span {
    display: block;
    color: #ddd;
    font-size: 12px;
}

/* =========================================================
   07. BOX IN ONDA / CANZONE / INTERAZIONE
   Utilizzato in: onair-box-mini dentro sidebar TV/home
   ========================================================= */
.onair-box-mini {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #333;
}

.onair-label {
    margin-bottom: 10px;
    color: #e50914;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.onair-box-mini h1 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.1;
}

.onair-box-mini p {
    margin: 0;
    color: #ccc;
}

.song-onair {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.song-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    opacity: .7;
}

.song-onair strong {
    display: block;
    font-size: 16px;
    font-style: italic;
}

.interact-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.interact-box h3 {
    margin: 0 0 6px;
}

.interact-box p {
    margin: 0 0 14px;
    opacity: .75;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================================
   08. SEZIONI PAGINA / TITOLI
   Utilizzato in: blocchi contenuto generali della home e pagine interne
   ========================================================= */
.page-section {
    padding: 30px 40px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 28px;
}

.section-head a {
    flex-shrink: 0;
    padding: 9px 13px;
    border-radius: 999px;
    background: #2a2a2a;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background .18s ease;
}

.section-head a:hover {
    background: #b3202a;
}

/* =========================================================
   09. SLIDER CARD ORIZZONTALI
   Utilizzato in: eventi, articoli, replay, palinsesto e card-row
   ========================================================= */
.card-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 14px;
}

.content-card {
    min-width: 250px;
    max-width: 250px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #1d1d1d;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.content-card:hover {
    transform: scale(1.04);
    border-color: rgba(229, 9, 20, .7);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.content-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #000;
}

.content-card-body {
    padding: 14px;
}

.content-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.content-card p {
    margin: 0 0 4px;
    color: #bbb;
    font-size: 13px;
    line-height: 1.35;
}

/* =========================================================
   PALINSESTO
   Utilizzato in: palinsesto.php
   ========================================================= */

.palinsesto-page {
    padding-bottom: 120px;
}

.palinsesto-page .page-container {
    max-width: 1500px;
    margin: 0 auto;
}

.palinsesto-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.palinsesto-toolbar h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.palinsesto-toolbar p {
    margin: 0;
    color: #ccc;
    line-height: 1.45;
}

.palinsesto-today-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    background: #e50914;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.palinsesto-days {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 18px;
    margin-bottom: 12px;
}

.palinsesto-days button {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.palinsesto-days button.active,
.palinsesto-days button:hover {
    background: #e50914;
    border-color: #e50914;
}

.palinsesto-current-day {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
    margin: 12px 0 22px;
}

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

.palinsesto-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.palinsesto-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, .75);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.palinsesto-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e30613, #151515);
}

.palinsesto-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .95;
}

.palinsesto-card-media.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.palinsesto-card-media.no-image span {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.palinsesto-card-body {
    padding: 18px;
}

.palinsesto-time {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(227, 6, 19, .22);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.palinsesto-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
}

.palinsesto-staff {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    opacity: .9;
}

.palinsesto-desc {
    margin: 0;
    color: #b8b8b8;
    line-height: 1.45;
}

.palinsesto-more {
    margin-top: 16px;
    color: #ff3b3b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.palinsesto-loading,
.palinsesto-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #b8b8b8;
}

/* MODALE PROGRAMMA */

.program-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.program-modal.is-open {
    display: block;
}

.program-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

.program-modal-card {
    position: relative;
    width: min(920px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    overflow: auto;
    background: #101010;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.program-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #111;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.program-modal-media {
    min-height: 260px;
    background: linear-gradient(135deg, #d90000, #111);
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-modal-media img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    display: block;
}

.program-modal-media span {
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
}

.program-modal-body {
    padding: 28px;
}

.program-modal-body h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
}

.program-modal-staff {
    color: #ff3030;
    font-weight: 900;
    margin-bottom: 14px;
}

.program-modal-body p {
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

.program-modal-body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 22px;
}

.program-modal-times {
    display: grid;
    gap: 10px;
}

.program-time-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.program-time-row strong {
    color: #fff;
}

.program-time-row span {
    color: rgba(255, 255, 255, .72);
}

.program-modal-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.program-podcast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

/* RESPONSIVE PALINSESTO */

@media (max-width: 980px) {
    .palinsesto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .palinsesto-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
        border-radius: 20px;
    }

    .palinsesto-toolbar h2 {
        font-size: 24px;
    }

    .palinsesto-today-btn {
        width: 100%;
    }

    .palinsesto-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .palinsesto-card {
        border-radius: 20px;
    }

    .program-modal-card {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 22px;
    }

    .program-modal-media {
        min-height: 190px;
    }

    .program-modal-body {
        padding: 22px;
    }

    .program-time-row {
        display: block;
    }

    .program-time-row span {
        display: block;
        margin-top: 4px;
    }

    .program-podcast-btn {
        width: 100%;
    }
}

/* =========================================================
   11. FOOTER PLAYER RADIO
   Utilizzato in: footer-player.php
   ========================================================= */
.radio-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(10, 10, 14, .96);
    color: #fff;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
    backdrop-filter: blur(14px);
}

.radio-main-btn,
.radio-choose-btn,
.footer-stream-card {
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.radio-main-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    font-size: 18px;
}

.radio-now {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.radio-now strong,
.radio-now span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-now strong {
    font-size: 15px;
}

.radio-now span {
    margin-top: 3px;
    opacity: .82;
    font-size: 13px;
    font-style: italic;
}

.radio-choose-btn {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.footer-stream-cards {
    max-width: 52vw;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
}

.footer-stream-card {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-align: left;
    transition: background .18s ease, transform .18s ease;
}

.footer-stream-card:hover,
.footer-stream-card.active {
    background: rgba(229, 9, 20, .88);
    transform: translateY(-1px);
}

.stream-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
}

.stream-name span {
    display: block;
    white-space: nowrap;
}

.stream-name span:first-child {
    opacity: .72;
    font-size: 11px;
    text-transform: uppercase;
}

.stream-name span:nth-child(2) {
    font-size: 14px;
}

.radio-live-badge {
    display: none;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 11px;
    font-weight: 700;
}

.radio-footer-copyright {
    width: 100%;
    padding: 18px;
    background: #08080b;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

/* =========================================================
   12. RESPONSIVE TABLET
   Utilizzato in: layout sotto 1100px
   ========================================================= */
@media (max-width: 1100px) {
    .site-nav {
        display: none;
    }

    .site-logo {
        font-size: 36px;
    }

    .site-logo img {
        max-height: 50px;
    }

    .home-tv-grid {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .page-section {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* =========================================================
   13. RESPONSIVE MOBILE
   Utilizzato in: smartphone, footer compatto, card e sidebar
   ========================================================= */
@media (max-width: 700px) {
    body {
        padding-top: 76px;
        padding-bottom: 74px;
    }

    .site-header {
        min-height: 72px;
        padding: 0 12px;
    }

    .site-logo {
        font-size: 28px;
    }

    .site-logo img {
        max-height: 44px;
    }

    .home-hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .home-tv-grid {
        gap: 18px;
    }

    .tv-panel,
    .sidebar,
    .site-sidebar {
        border-radius: 16px;
        padding: 14px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head h2 {
        font-size: 23px;
    }

    .card-row {
        gap: 12px;
        padding-bottom: 12px;
    }

    .content-card {
        min-width: 215px;
        max-width: 215px;
    }

    .content-card img {
        height: 130px;
    }

    .radio-footer {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 9px 10px;
    }

    .radio-main-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .radio-choose-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        font-size: 0;
    }

    .radio-choose-btn::before {
        content: '☰';
        font-size: 20px;
    }

    .footer-stream-cards {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: calc(100% + 10px);
        display: none;
        max-width: none;
        max-height: 55vh;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px;
        border-radius: 18px;
        background: rgba(10, 10, 14, .98);
        box-shadow: 0 -12px 35px rgba(0, 0, 0, .45);
    }

    .radio-footer.streams-open .footer-stream-cards {
        display: flex;
    }

    .footer-stream-card {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }
}

/* =========================================================
   PAGINA COPERTURE
   Usata in: coperture.php
========================================================= */

.coverage-page {
    padding: 45px 40px 120px;
    background: radial-gradient(circle at top, #242424 0%, #111 55%);
}

.coverage-hero {
    max-width: 1500px;
    margin: 0 auto 26px;
}

.coverage-hero h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.05;
}

.coverage-hero p {
    max-width: 780px;
    margin: 0;
    color: #ccc;
    line-height: 1.5;
}

.coverage-layout {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(680px, 1fr) 340px;
    gap: 26px;
    align-items: stretch;
}

.coverage-map-card {
    padding: 14px;
    background: #1d1d1d;
    border: 1px solid #2c2c2c;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

#coverageMap {
    width: 100%;
    min-height: 640px;
    border-radius: 14px;
    background: #000;
    cursor: grab;
}

#coverageMap:active {
    cursor: grabbing;
}

.coverage-panel {
    max-height: 668px;
    padding: 18px;
    overflow-y: auto;
    background: linear-gradient(180deg, #202020 0%, #161616 100%);
    border: 1px solid #2d2d2d;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
    color: #fff;
}

.coverage-panel-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #aaa;
}

.coverage-panel-empty span {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.coverage-panel-empty p {
    margin: 8px 0 0;
    color: #ccc;
}

.coverage-panel-head h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.1;
}

.coverage-panel-head p {
    margin: 0 0 10px;
    color: #ccc;
    line-height: 1.45;
}

.coverage-frequency-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #333;
}

.coverage-frequency-group h3 {
    margin: 0 0 12px;
    color: #e50914;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.coverage-frequency-list {
    display: grid;
    gap: 12px;
}

.coverage-frequency-card {
    padding: 16px;
    border: 1px solid #383838;
    border-radius: 14px;
    background: #292929;
}

.coverage-frequency-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.coverage-frequency-card span,
.coverage-frequency-card small {
    display: block;
    color: #ddd;
    font-size: 12px;
    line-height: 1.4;
}

.leaflet-container {
    font-family: inherit;
}

.leaflet-tooltip {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: #e50914;
    color: #fff;
    font-weight: 900;
}

/* Responsive coperture */
@media (max-width: 1100px) {
    .coverage-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .coverage-layout {
        grid-template-columns: 1fr;
    }

    #coverageMap {
        min-height: 520px;
    }

    .coverage-panel {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .coverage-page {
        padding: 24px 18px 100px;
    }

    .coverage-layout {
        gap: 18px;
    }

    .coverage-hero h1 {
        font-size: 34px;
    }

    .coverage-map-card,
    .coverage-panel {
        border-radius: 16px;
    }

    #coverageMap {
        min-height: 420px;
    }
}

/* ==============================
   PALINSESTO
   ============================== */

.palinsesto-page {
    padding-bottom: 110px;
}

.palinsesto-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.palinsesto-toolbar h2 {
    margin: 0 0 6px;
}

.palinsesto-toolbar p {
    margin: 0;
    color: var(--text-muted, #a7a7a7);
}

.palinsesto-today-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--primary, #e30613);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.palinsesto-days {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 18px;
    margin-bottom: 12px;
}

.palinsesto-days button {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.palinsesto-days button.active,
.palinsesto-days button:hover {
    background: var(--primary, #e30613);
    border-color: var(--primary, #e30613);
}

.palinsesto-current-day {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
    margin: 12px 0 22px;
}

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

.palinsesto-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.palinsesto-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e30613, #151515);
}

.palinsesto-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.palinsesto-card-media.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.palinsesto-card-media.no-image span {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.palinsesto-card-body {
    padding: 18px;
}

.palinsesto-time {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(227, 6, 19, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.palinsesto-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
}

.palinsesto-staff {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    opacity: .9;
}

.palinsesto-desc {
    margin: 0;
    color: var(--text-muted, #b8b8b8);
    line-height: 1.45;
}

.palinsesto-loading,
.palinsesto-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    color: var(--text-muted, #b8b8b8);
}

@media (max-width: 980px) {
    .palinsesto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .palinsesto-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .palinsesto-today-btn {
        width: 100%;
    }

    .palinsesto-grid {
        grid-template-columns: 1fr;
    }

    .palinsesto-card {
        border-radius: 20px;
    }
}



/* PODCAST PAGE FIX FOOTER */
.podcast-section {
    min-height: calc(100vh - 190px);
    overflow: visible;
    padding-bottom: 120px;
}

.podcast-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    height: calc(100vh - 330px);
    min-height: 520px;
    align-items: stretch;
}

.podcast-sidebar,
.podcast-content {
    max-height: 100%;
    overflow: hidden;
}

.podcast-programs {
    max-height: calc(100% - 80px);
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 90px;
}

.podcast-list {
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 140px;
}

@media (max-width: 900px) {
    .podcast-section {
        padding-bottom: 140px;
    }

    .podcast-layout {
        height: auto;
        min-height: 0;
    }

    .podcast-sidebar,
    .podcast-content,
    .podcast-programs,
    .podcast-list {
        max-height: none;
        overflow: visible;
    }
}

/* =========================================================
   PODCAST PAGE
========================================================= */

.podcast-section {
    min-height: calc(100vh - 190px);
    padding-bottom: 150px;
    overflow: visible;
}

.podcast-toolbar {
    margin-bottom: 24px;
}

.podcast-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    height: calc(100vh - 330px);
    min-height: 540px;
    align-items: stretch;
}

.podcast-sidebar,
.podcast-content,
.podcast-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 22px;
}

.podcast-sidebar,
.podcast-content {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.podcast-sidebar-head h2,
.podcast-selected-head h2 {
    margin: 0 0 6px;
}

.podcast-sidebar-head p,
.podcast-selected-head p {
    margin: 0;
    opacity: .75;
}

/* Lista programmi sinistra */
.podcast-programs {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    max-height: calc(100% - 80px);
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 120px;
}

.podcast-program-card {
    width: 100%;
    text-align: left;
    color: inherit;
    cursor: pointer;
    border-radius: 16px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.podcast-program-card:hover,
.podcast-program-card.active {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.65);
}

.podcast-program-card:hover {
    transform: translateY(-1px);
}

.podcast-program-card strong,
.podcast-program-card span {
    display: block;
}

.podcast-program-card span {
    margin-top: 4px;
    font-size: .85rem;
    opacity: .75;
}

/* Area destra */
.podcast-content {
    display: flex;
    flex-direction: column;
}

.podcast-selected-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-shrink: 0;
    padding-bottom: 18px;
}

/* Switch Audio / Video */
.podcast-mode-switch {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.podcast-mode-switch button {
    border: 0;
    color: inherit;
    cursor: pointer;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 16px;
    background: transparent;
}

.podcast-mode-switch button.active {
    color: #fff;
    background: #e50914;
}

/* Lista episodi destra */
.podcast-list {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 150px;
}

.podcast-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.podcast-card h3 {
    margin: 0 0 5px;
}

.podcast-card-head span {
    font-size: .88rem;
    opacity: .72;
}

.podcast-type {
    flex: 0 0 auto;
    height: fit-content;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .8rem;
    background: rgba(255, 255, 255, 0.08);
}

.podcast-card p {
    opacity: .82;
}

/* Player */
.podcast-player {
    margin-top: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.podcast-player audio,
.podcast-player video,
.podcast-player iframe {
    width: 100%;
    margin-top: 0;
    border-radius: 18px;
    background: #111;
}

.podcast-player video {
    display: block;
    max-height: 520px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.podcast-player iframe {
    min-height: 360px;
    border: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* Personalizzazione player audio nativo */
.podcast-player audio {
    color-scheme: dark;
    accent-color: #e50914;
}

.podcast-player audio::-webkit-media-controls-panel {
    background: linear-gradient(135deg, #111 0%, #1b1b1b 100%);
}

.podcast-player audio::-webkit-media-controls-play-button,
.podcast-player audio::-webkit-media-controls-mute-button {
    border-radius: 50%;
    background-color: #e50914;
}

.podcast-player audio::-webkit-media-controls-current-time-display,
.podcast-player audio::-webkit-media-controls-time-remaining-display {
    color: #fff;
    text-shadow: none;
}

.podcast-player audio::-webkit-media-controls-timeline,
.podcast-player audio::-webkit-media-controls-volume-slider {
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.18);
}

/* Mobile */
@media (max-width: 900px) {
    .podcast-section {
        padding-bottom: 150px;
    }

    .podcast-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .podcast-sidebar,
    .podcast-content,
    .podcast-programs,
    .podcast-list {
        max-height: none;
        overflow: visible;
    }

    .podcast-selected-head,
    .podcast-card-head {
        flex-direction: column;
    }

    .podcast-mode-switch {
        width: 100%;
    }

    .podcast-mode-switch button {
        flex: 1;
    }

    .podcast-player {
        padding: 10px;
    }

    .podcast-player iframe {
        min-height: 220px;
    }

    .podcast-player video {
        max-height: 320px;
    }
}


/* ================================
   EVENTI PAGE
   Utilizzato in eventi.php
================================ */

.eventi-page {
    padding-bottom: 120px;
}

.eventi-hero {
    padding: 30px 40px 0;
}

.eventi-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.eventi-hero p {
    margin: 0;
    max-width: 780px;
    color: #ccc;
    line-height: 1.5;
}

.eventi-section {
    padding: 24px 40px 40px;
}

.eventi-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    height: calc(100vh - 260px);
    min-height: 540px;
    align-items: stretch;
}

.eventi-list,
.evento-detail {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
}

.eventi-list {
    display: grid;
    align-content: start;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
    padding: 22px;
    padding-bottom: 80px;
}

.evento-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.evento-card:hover,
.evento-card.active {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.65);
}

.evento-card:hover {
    transform: translateY(-1px);
}

.evento-card-img {
    height: 82px;
    border-radius: 14px;
    overflow: hidden;
    background: #292929;
}

.evento-card-img img,


.evento-no-img {
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #e30613, #151515);
}

.evento-no-img.big {
    min-height: 300px;
}

.evento-card-body {
    min-width: 0;
}

.evento-date {
    display: block;
    margin-bottom: 6px;
    color: #e50914;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.evento-card h2 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.15;
}

.evento-card p {
    margin: 0;
    color: #bbb;
    font-size: 13px;
    line-height: 1.35;
}

.evento-detail {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.evento-placeholder {
    padding: 28px;
    color: #ccc;
}

.evento-detail-cover {
    height: 320px;
    background: #1d1d1d;
}

.evento-detail-body {
    padding: 22px;
}

.evento-detail-body h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
}

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

.evento-info-grid div {
    padding: 16px;
    border-radius: 14px;
    background: #292929;
    border: 1px solid #383838;
}

.evento-info-grid strong {
    display: block;
    margin-bottom: 5px;
    color: #e50914;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.evento-info-grid span {
    color: #ddd;
    font-size: 13px;
    line-height: 1.4;
}

.evento-description {
    margin-top: 18px;
    color: #ccc;
    line-height: 1.55;
}

.evento-note {
    color: #ccc;
    font-style: italic;
}

.evento-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.evento-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.evento-map {
    height: 340px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Responsive eventi */
@media (max-width: 1100px) {

    .eventi-hero,
    .eventi-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .eventi-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .eventi-list {
        height: auto;
        overflow: visible;
        padding-bottom: 22px;
    }

    .evento-detail {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .eventi-hero {
        padding-top: 24px;
    }

    .eventi-info-grid,
    .evento-info-grid {
        grid-template-columns: 1fr;
    }

    .evento-detail-cover {
        height: 230px;
    }

    .evento-detail-body,
    .eventi-list {
        padding: 18px;
    }
}

@media (max-width: 620px) {
    .evento-card {
        grid-template-columns: 82px 1fr;
    }

    .evento-card-img {
        height: 76px;
    }

    .evento-map {
        height: 280px;
    }
}

/* =========================================================
   PAGINA STAFF
   Utilizzato in staff.php
========================================================= */

.staff-page {
    padding-bottom: 120px;
}

.staff-hero {
    padding: 30px 40px 0;
}

.staff-hero-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.staff-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.staff-hero p {
    margin: 0;
    max-width: 780px;
    color: #ccc;
    line-height: 1.5;
}

.staff-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.staff-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    margin-bottom: 34px;
}

.staff-tools input,
.staff-tools select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.staff-tools input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.staff-tools select option {
    background: #151515;
    color: #fff;
}

.staff-role-block {
    margin-bottom: 58px;
}

.staff-role-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
}

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

.staff-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
}

.staff-photo-wrap {
    aspect-ratio: 1 / 1;
    background: #292929;
    overflow: hidden;
}

.staff-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.staff-card-body {
    padding: 22px;
}

.staff-card-body h3 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
}

.staff-real-name {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

.staff-bio {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    font-size: 0.96rem;
}

.staff-programs {
    margin-top: 18px;
}

.staff-programs>span {
    display: block;
    margin-bottom: 10px;
    color: #ff2b2b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.staff-program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-program-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 43, 43, 0.12);
    border: 1px solid rgba(255, 43, 43, 0.28);
    color: #fff;
    font-size: 0.82rem;
}

@media (max-width: 1100px) {

    .staff-hero,
    .staff-section {
        padding-left: 18px;
        padding-right: 18px;
    }

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

@media (max-width: 650px) {
    .staff-tools {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   PAGINA CONTATTI
   Utilizzato in: contatti.php
========================================================= */

.contatti-page {
    padding-bottom: 120px;
}

.contatti-hero {
    padding: 30px 40px 0;
}

.contatti-hero-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.contatti-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.contatti-hero p {
    margin: 0;
    max-width: 780px;
    color: #ccc;
    line-height: 1.5;
}

.contatti-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.contatti-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.contatti-card,
.contatti-map-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.contatti-card {
    padding: 24px;
}

.contatti-card h2,
.contatti-map-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.15;
}

.contatti-list {
    display: grid;
    gap: 14px;
}

.contatto-item {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.contatto-item strong {
    display: block;
    margin-bottom: 6px;
    color: #e50914;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contatto-item span {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}

.contatto-item:hover {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.65);
}

.contatti-email-box {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.contatti-email-box h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.contatti-map-card {
    overflow: hidden;
}

.contatti-map-head {
    padding: 24px 24px 0;
}

.contatti-map {
    width: 100%;
    height: 520px;
    margin-top: 20px;
    border: 0;
    display: block;
    filter: grayscale(1) contrast(1.05);
}

@media (max-width: 1100px) {

    .contatti-hero,
    .contatti-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .contatti-layout {
        grid-template-columns: 1fr;
    }

    .contatti-map {
        height: 430px;
    }
}

@media (max-width: 650px) {
    .contatti-hero {
        padding-top: 24px;
    }

    .contatti-card,
    .contatti-map-card {
        border-radius: 18px;
    }

    .contatti-card,
    .contatti-map-head {
        padding: 18px;
    }

    .contatti-map-head {
        padding-bottom: 0;
    }

    .contatti-map {
        height: 340px;
    }
}



/* ================================
   GALLERY PAGE
   Utilizzato in gallery.php
================================ */

.gallery-page {
    padding-bottom: 120px;
}

.gallery-hero {
    padding: 30px 40px 0;
}

.gallery-hero-inner {
    max-width: 1500px;
    margin: 0 auto;
}

.gallery-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.gallery-hero p {
    margin: 0;
    max-width: 780px;
    color: #ccc;
    line-height: 1.5;
}

.gallery-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 40px 40px;
}

.gallery-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.gallery-toolbar h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.gallery-toolbar p {
    margin: 0;
    color: #ccc;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    height: calc(100vh - 260px);
    min-height: 540px;
    align-items: stretch;
}

.gallery-sidebar,
.gallery-detail-card,
.gallery-empty {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
}

.gallery-sidebar {
    height: 100%;
    overflow: hidden;
    padding: 22px;
}

.gallery-sidebar-head h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.15;
}

.gallery-sidebar-head input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.gallery-list {
    display: grid;
    align-content: start;
    gap: 12px;
    height: calc(100% - 92px);
    overflow-y: auto;
    margin-top: 18px;
    padding-right: 8px;
    padding-bottom: 80px;
}

.gallery-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.gallery-item:hover,
.gallery-item.active {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.65);
}

.gallery-item:hover {
    transform: translateY(-1px);
}

.gallery-item-cover {
    height: 82px;
    border-radius: 14px;
    overflow: hidden;
    background: #292929;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 11px;
}

.gallery-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-info {
    min-width: 0;
}

.gallery-item-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.15;
}

.gallery-item-info small,
.gallery-item-info em {
    display: block;
    color: #bbb;
    font-size: 13px;
    line-height: 1.35;
    font-style: normal;
}

.gallery-item-count {
    display: none;
}

.gallery-detail {
    min-width: 0;
    height: 100%;
}

.gallery-detail-card,
.gallery-empty {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.gallery-empty {
    padding: 28px;
    color: #ccc;
}

.gallery-detail-card {
    padding: 22px;
}

.gallery-detail-head h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
}

.gallery-detail-head p {
    margin: 0;
    color: #ccc;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #e50914;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-description {
    margin-top: 18px;
    color: #ccc;
    line-height: 1.55;
}

.gallery-tags,
.gallery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.gallery-tags span,
.gallery-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #292929;
    border: 1px solid #383838;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.gallery-links a:hover {
    background: #e50914;
    border-color: #e50914;
}

.gallery-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
    padding-bottom: 80px;
}

.gallery-media-card {
    overflow: hidden;
    min-height: 180px;
    border-radius: 18px;
    background: #292929;
    border: 1px solid #383838;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.gallery-media-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.gallery-media-card strong {
    display: block;
    padding: 14px;
    font-size: 15px;
}

.gallery-video-wrap {
    aspect-ratio: 16 / 9;
    background: #000;
}

.gallery-video-wrap iframe,
.gallery-video-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-link,
.file-link {
    display: grid;
    place-content: center;
    text-align: center;
    padding: 20px;
}

.video-link span {
    font-size: 42px;
    margin-bottom: 8px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .88);
}

.gallery-lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 88vh;
    border-radius: 18px;
}

.gallery-lightbox button {
    position: fixed;
    top: 22px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border-radius: 999px;
    font-size: 32px;
    cursor: pointer;
}

.empty.error {
    color: #ffb4b4;
}

@media (max-width: 1100px) {

    .gallery-hero,
    .gallery-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gallery-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .gallery-sidebar,
    .gallery-detail-card,
    .gallery-empty {
        height: auto;
        overflow: visible;
    }

    .gallery-list {
        height: auto;
        max-height: 420px;
        padding-bottom: 22px;
    }

    .gallery-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 22px;
    }
}

@media (max-width: 720px) {
    .gallery-hero {
        padding-top: 24px;
    }

    .gallery-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .gallery-detail-card,
    .gallery-sidebar {
        padding: 18px;
    }
}

@media (max-width: 620px) {
    .gallery-item {
        grid-template-columns: 82px 1fr;
    }

    .gallery-item-cover {
        height: 76px;
    }

    .gallery-media-card img {
        height: 220px;
    }
}

/* FOOTER */

.streaming-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 42px;
    padding: 0 16px;

    border: 0;
    border-radius: 999px;

    background: linear-gradient(135deg, #e50914 0%, #8b000d 100%);
    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;

    cursor: pointer;

    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.streaming-header-btn::after {
    content: '↗';

    display: inline-block;

    font-size: 15px;
    font-weight: 900;
    line-height: 1;

    opacity: .9;
}

/*PRIVACY*/

/* Privacy page */
.privacy-page .contatti-layout {
    display: block;
}

.privacy-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.privacy-content {
    font-size: 16px;
    line-height: 1.75;
    color: #ffffff;
}

.privacy-content h3 {
    margin: 32px 0 14px;
    font-size: 22px;
    line-height: 1.3;
}

.privacy-content p {
    margin: 0 0 18px;
}

.privacy-content ul {
    margin: 0 0 22px 22px;
    padding: 0;
}

.privacy-content li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .privacy-content {
        font-size: 15px;
        line-height: 1.65;
    }

    .privacy-content h3 {
        font-size: 19px;
    }
}

/* =========================================================
   99. FIX RESPONSIVE MOBILE PLAYER TV / AUDIO
   Utilizzato in: index.php, player TV, player audio, footer-player.php
   Obiettivo: evitare tagli su smartphone e mantenere video/player interi.
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-main,
.home-hero,
.page-section,
.media-player-area,
.tv-player,
.radio-card-player,
.radio-card-content,
.radio-footer,
.footer-stream-cards {
    max-width: 100%;
    box-sizing: border-box;
}

.tv-player,
.media-player-area,
.radio-card-player {
    width: 100%;
    min-width: 0;
}

.tv-player video,
.tv-player iframe,
.media-player-area video,
.media-player-area iframe,
.radio-card-player video,
.radio-card-player iframe,
.podcast-player video,
.podcast-player iframe,
.gallery-video-wrap video,
.gallery-video-wrap iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    display: block;
    background: #000;
}

.tv-player video,
.media-player-area video,
.radio-card-player video,
.podcast-player video,
.gallery-video-wrap video {
    height: auto;
    object-fit: contain;
}

.tv-player iframe,
.media-player-area iframe,
.radio-card-player iframe,
.gallery-video-wrap iframe {
    height: 100%;
}

/* Evita che bottoni e volume escano fuori dallo schermo */
.custom-radio-controls,
.radio-card-controls,
.player-controls,
.tv-controls,
.footer-player-controls {
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-radio-controls input,
.player-controls input,
.tv-controls input,
.footer-player-controls input,
input[type="range"] {
    min-width: 0;
    max-width: 100%;
}

/* Tablet e mobile grande */
@media (max-width: 900px) {
    body {
        padding-bottom: 96px;
    }

    .home-hero {
        padding: 20px 14px 24px;
    }

    .home-tv-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tv-player {
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }

    .media-player-area {
        width: 100%;
        overflow: visible;
    }

    .media-player-area iframe,
    .media-player-area video {
        min-height: 0;
        height: auto;
        max-height: 48vh;
        object-fit: contain;
        border-radius: 16px;
    }

    .media-player-area iframe {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .radio-card-player,
    .radio-card-content {
        min-height: 300px;
        height: auto;
    }

    .radio-card-content {
        padding: 18px 14px;
    }

    .custom-radio-controls {
        width: 100%;
        border-radius: 22px;
    }
}

/* Smartphone */
@media (max-width: 700px) {
    body {
        padding-bottom: 108px;
    }

    .home-hero,
    .page-section,
    .eventi-hero,
    .eventi-section,
    .gallery-hero,
    .gallery-section,
    .staff-hero,
    .staff-section,
    .contatti-hero,
    .contatti-section,
    .coverage-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-tv-grid,
    .coverage-layout,
    .eventi-layout,
    .gallery-layout,
    .podcast-layout,
    .contatti-layout {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .tv-player {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 42vh;
        overflow: hidden;
        border-radius: 14px;
    }

    .tv-player video,
    .tv-player iframe {
        width: 100%;
        height: 100%;
        max-height: 42vh;
        object-fit: contain;
    }

    .media-player-area iframe,
    .media-player-area video {
        width: 100%;
        max-height: 42vh;
        min-height: 0;
        object-fit: contain;
    }

    .media-player-area iframe {
        aspect-ratio: 16 / 9;
    }

    .radio-card-player,
    .radio-card-content {
        min-height: 280px;
        border-radius: 20px;
    }

    .radio-card-logo {
        width: min(70vw, 230px);
        max-height: 78px;
    }

    .radio-card-controls {
        gap: 10px;
    }

    .radio-main-btn {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .radio-nav-btn {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }

    .radio-card-now strong {
        font-size: 20px;
    }

    .radio-card-now span {
        font-size: 14px;
    }

    .custom-radio-controls {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 10px;
        padding: 12px;
        border-radius: 18px;
    }

    .custom-radio-controls input[type="range"] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .custom-radio-controls button {
        min-width: 46px;
        min-height: 46px;
        padding: 10px 14px;
    }

    .media-panel,
    .tv-panel,
    .sidebar,
    .site-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .media-source-list,
    .tv-card-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .radio-footer {
        grid-template-columns: auto minmax(0, 1fr) auto;
        width: 100%;
        max-width: 100%;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .radio-footer .radio-main-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .radio-now {
        min-width: 0;
    }

    .radio-now strong {
        font-size: 14px;
    }

    .radio-now span {
        font-size: 12px;
    }

    .footer-stream-cards {
        left: 8px;
        right: 8px;
        max-height: min(58vh, 430px);
        bottom: calc(100% + 8px);
    }
}

/* Smartphone piccoli */
@media (max-width: 420px) {
    .home-hero {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tv-player,
    .tv-player video,
    .tv-player iframe,
    .media-player-area video,
    .media-player-area iframe {
        max-height: 36vh;
    }

    .radio-card-player,
    .radio-card-content {
        min-height: 250px;
    }

    .radio-card-logo {
        max-height: 64px;
    }

    .radio-main-btn {
        width: 58px;
        height: 58px;
        font-size: 25px;
    }

    .radio-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }

    .radio-card-now strong {
        font-size: 18px;
    }

    .radio-card-now span {
        font-size: 13px;
    }
}

/* Mobile in orizzontale: player più basso per non tagliare */
@media (max-width: 900px) and (orientation: landscape) {
    body {
        padding-bottom: 86px;
    }

    .tv-player,
    .tv-player video,
    .tv-player iframe,
    .media-player-area video,
    .media-player-area iframe {
        max-height: 62vh;
    }

    .radio-card-player,
    .radio-card-content {
        min-height: 240px;
    }
}

/* =========================================================
   99. FIX DEFINITIVO MOBILE PLAYER HOME / STREAMING
   Utilizzato in: index.php player radio/TV + lista streaming + footer player
   Note: lasciare questa sezione in fondo al file CSS.
   ========================================================= */

.media-player-area,
.radio-card-player,
.radio-card-content,
.tv-player,
.tv-player video,
.tv-player iframe {
    max-width: 100%;
    box-sizing: border-box;
}

.radio-card-now,
.radio-card-now strong,
.radio-card-now span,
.radio-now,
.radio-now strong,
.radio-now span {
    min-width: 0;
}

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body {
        padding-top: 76px;
        padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .site-header {
        min-height: 72px;
        padding: 0 14px;
    }

    .site-header-inner {
        gap: 12px;
    }

    .site-logo img {
        max-width: 210px;
        max-height: 42px;
        object-fit: contain;
    }

    .menu-toggle {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        padding: 0;
        flex: 0 0 auto;
    }

    .home-hero {
        padding: 22px 14px calc(130px + env(safe-area-inset-bottom));
    }

    .home-tv-grid {
        width: 100%;
        max-width: 100%;
        gap: 18px;
    }

    .media-player-area {
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
        border-radius: 22px;
    }

    .media-player-area iframe,
    .media-player-area video {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: 42vh !important;
        object-fit: contain !important;
        border-radius: 22px;
    }

    .tv-player {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 0;
        height: auto;
        border-radius: 22px;
    }

    .tv-player video,
    .tv-player iframe {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .radio-card-player {
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 0 24px;
        overflow: hidden !important;
        border-radius: 22px;
        background: #111;
        box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
    }

    .radio-card-bg,
    .radio-bg-video {
        width: 130% !important;
        height: 130% !important;
        min-width: 130% !important;
        min-height: 130% !important;
        opacity: .14 !important;
        filter: blur(1px) saturate(.85) contrast(.9) brightness(.78) !important;
        transform: translate(-50%, -50%) scale(1.12) !important;
    }

    .radio-card-shade {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, .76) 100%),
            linear-gradient(145deg, rgba(120, 0, 12, .32) 0%, rgba(20, 20, 20, .78) 52%, rgba(0, 0, 0, .88) 100%) !important;
    }

    .radio-card-content {
        min-height: 0 !important;
        height: auto !important;
        padding: 24px 18px 30px !important;
        gap: 14px !important;
        align-content: center;
        justify-items: center;
    }

    .radio-card-logo {
        width: min(56vw, 230px) !important;
        max-height: 58px !important;
        margin: 0 0 8px !important;
        object-fit: contain;
    }

    .radio-card-controls {
        width: 100%;
        gap: 13px !important;
        justify-content: center;
    }

    .radio-card-controls .radio-main-btn,
    .radio-card-player .radio-main-btn {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        min-height: 72px !important;
        font-size: 31px !important;
        background: #e50914 !important;
        color: #fff !important;
        box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
    }

    .radio-card-controls .radio-nav-btn,
    .radio-card-player .radio-nav-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        font-size: 25px !important;
        background: rgba(255, 255, 255, .16) !important;
        border: 1px solid rgba(255, 255, 255, .22) !important;
    }

    .radio-card-now {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 4px !important;
        text-align: center;
    }

    .radio-card-now strong,
    .radio-card-now span {
        display: block !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .radio-card-now strong {
        font-size: clamp(23px, 7vw, 30px) !important;
        line-height: 1.12 !important;
        letter-spacing: -.02em;
    }

    .radio-card-now span {
        margin-top: 10px !important;
        font-size: clamp(16px, 4.8vw, 20px) !important;
        line-height: 1.24 !important;
        font-weight: 800 !important;
        opacity: .95 !important;
    }

    .media-panel,
    .tv-panel {
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
        padding: 18px !important;
        border-radius: 22px !important;
        overflow: visible !important;
    }

    .media-tabs {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
        gap: 12px;
    }

    .media-tab {
        min-height: 60px;
        padding: 13px 12px;
        font-size: 18px;
        border-radius: 999px;
    }

    .media-source-list,
    .tv-card-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        padding-bottom: 22px !important;
        gap: 14px;
    }

    .media-source-card,
    .tv-card,
    .footer-stream-card {
        min-width: 0 !important;
    }

    .media-source-card,
    .tv-card {
        padding: 20px 22px !important;
        border-radius: 20px !important;
    }

    .media-source-card strong,
    .media-source-card span,
    .tv-card strong,
    .tv-card span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere;
    }

    .media-source-card strong,
    .tv-card strong {
        font-size: 20px !important;
        line-height: 1.18;
    }

    .media-source-card span,
    .tv-card span {
        margin-top: 7px;
        font-size: 16px !important;
        line-height: 1.3;
    }

    .radio-footer {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 82px;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, .10);
    }

    .radio-footer .radio-main-btn {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        font-size: 20px !important;
        background: #e50914 !important;
        color: #fff !important;
    }

    .radio-now {
        min-width: 0 !important;
        overflow: hidden;
    }

    .radio-now strong,
    .radio-now span {
        display: block !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
        line-height: 1.2 !important;
    }

    .radio-now strong {
        font-size: 14px !important;
    }

    .radio-now span {
        font-size: 12px !important;
    }

    .footer-stream-cards {
        bottom: calc(100% + 10px + env(safe-area-inset-bottom));
        max-height: 48vh !important;
        padding: 10px !important;
    }
}

@media (max-width: 390px) {
    .radio-card-content {
        padding: 22px 14px 28px !important;
    }

    .radio-card-logo {
        width: 52vw !important;
        max-height: 50px !important;
    }

    .radio-card-controls .radio-main-btn,
    .radio-card-player .radio-main-btn {
        width: 66px !important;
        height: 66px !important;
        min-width: 66px !important;
        min-height: 66px !important;
        font-size: 29px !important;
    }

    .radio-card-controls .radio-nav-btn,
    .radio-card-player .radio-nav-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }

    .radio-card-now strong {
        font-size: 24px !important;
    }

    .radio-card-now span {
        font-size: 17px !important;
    }
}

/* =========================================================
   100. FIX FINALE MOBILE HOME PLAYER / STREAMING
   Deve restare in fondo al file.
   Corregge: player che copre lista, testi troppo grandi,
   video di sfondo invisibile e spazio sotto per footer mobile.
   ========================================================= */

@media (max-width: 700px) {
    body {
        padding-top: 76px !important;
        padding-bottom: calc(170px + env(safe-area-inset-bottom)) !important;
    }

    .home-hero {
        padding: 18px 12px 28px !important;
        overflow: visible !important;
    }

    .home-tv-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .media-player-area {
        order: 1 !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 20px !important;
    }

    .media-panel,
    .tv-panel {
        order: 2 !important;
        position: relative !important;
        z-index: 5 !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 16px !important;
        overflow: visible !important;
        border-radius: 20px !important;
    }

    .radio-card-player {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        border-radius: 20px !important;
    }

    .radio-card-content {
        position: relative !important;
        z-index: 3 !important;
        height: auto !important;
        min-height: 285px !important;
        max-height: none !important;
        padding: 20px 14px 22px !important;
        gap: 11px !important;
        display: grid !important;
        align-content: center !important;
        justify-items: center !important;
    }

    .radio-card-bg,
    .radio-bg-video {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 145% !important;
        height: 145% !important;
        min-width: 145% !important;
        min-height: 145% !important;
        transform: translate(-50%, -50%) scale(1.10) !important;
        opacity: .30 !important;
        filter: blur(.5px) saturate(1.05) contrast(1.05) brightness(.82) !important;
        pointer-events: none !important;
        border: 0 !important;
    }

    .radio-card-shade {
        position: absolute !important;
        inset: 0 !important;
        z-index: 2 !important;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .68) 100%),
            linear-gradient(145deg, rgba(120, 0, 12, .20) 0%, rgba(20, 20, 20, .54) 52%, rgba(0, 0, 0, .74) 100%) !important;
    }

    .radio-card-logo {
        width: min(48vw, 190px) !important;
        max-height: 46px !important;
        margin: 0 0 4px !important;
        object-fit: contain !important;
    }

    .radio-card-controls {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        margin: 0 !important;
    }

    .radio-card-player .radio-main-btn,
    .radio-card-controls .radio-main-btn {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        font-size: 27px !important;
        background: #e50914 !important;
        color: #fff !important;
    }

    .radio-card-player .radio-nav-btn,
    .radio-card-controls .radio-nav-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        font-size: 23px !important;
        background: rgba(255, 255, 255, .16) !important;
        border: 1px solid rgba(255, 255, 255, .24) !important;
    }

    .radio-card-now {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 8px !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .radio-card-now strong,
    .radio-card-now span {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .radio-card-now strong {
        font-size: clamp(20px, 5.6vw, 24px) !important;
        line-height: 1.12 !important;
        font-weight: 900 !important;
        letter-spacing: -.02em !important;
    }

    .radio-card-now span {
        margin-top: 7px !important;
        font-size: clamp(13px, 4vw, 16px) !important;
        line-height: 1.22 !important;
        font-weight: 800 !important;
        font-style: italic !important;
        opacity: .92 !important;
    }

    .media-tabs {
        position: relative !important;
        z-index: 6 !important;
        margin: 0 0 18px !important;
        gap: 10px !important;
    }

    .media-tab {
        min-height: 52px !important;
        padding: 10px 12px !important;
        font-size: 16px !important;
        border-radius: 999px !important;
    }

    .media-panel h2,
    .tv-panel h2,
    #mediaPanelTitle {
        margin: 0 0 14px !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    .media-source-list,
    .tv-card-list {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        padding-bottom: 165px !important;
        gap: 12px !important;
    }

    .media-source-card,
    .tv-card {
        min-height: 78px !important;
        padding: 16px 18px !important;
        border-radius: 18px !important;
    }

    .media-source-card strong,
    .tv-card strong {
        font-size: 18px !important;
        line-height: 1.16 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .media-source-card span,
    .tv-card span {
        margin-top: 6px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .onair-box-mini,
    .interact-box {
        display: none !important;
    }

    .tv-player,
    .media-player-area>iframe,
    .media-player-area>video {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 38vh !important;
        border-radius: 20px !important;
        object-fit: contain !important;
        overflow: hidden !important;
    }

    .radio-footer {
        min-height: 76px !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    }

    .radio-footer .radio-main-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        font-size: 19px !important;
    }

    .radio-now strong {
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    .radio-now span {
        font-size: 11px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 390px) {
    .radio-card-content {
        min-height: 270px !important;
        padding: 18px 12px 20px !important;
    }

    .radio-card-logo {
        width: min(46vw, 170px) !important;
        max-height: 42px !important;
    }

    .radio-card-player .radio-main-btn,
    .radio-card-controls .radio-main-btn {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
    }

    .radio-card-player .radio-nav-btn,
    .radio-card-controls .radio-nav-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .radio-card-now strong {
        font-size: 20px !important;
    }

    .radio-card-now span {
        font-size: 13px !important;
    }

    .media-source-card strong,
    .tv-card strong {
        font-size: 17px !important;
    }
}

/* =========================================================
   100. FIX MOBILE DEFINITIVO - PLAYER RADIO NON COPRE LISTE
   Utilizzato in: index.php su smartphone
   Obiettivo: quando il player mostra la radio, il contenitore non deve
   comportarsi come video 16:9 e non deve coprire tab, streaming e sezioni.
   ========================================================= */

@media (max-width: 700px) {

    /* Il contenitore ha classi tv-player + media-player-area anche in modalità radio:
       con :has() lo trasformiamo in un box normale solo quando contiene radio-card-player. */
    .tv-player.media-player-area:has(.radio-card-player) {
        display: block !important;
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-player {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        border-radius: 20px !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-content {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 250px !important;
        height: auto !important;
        padding: 18px 14px 20px !important;
        gap: 10px !important;
    }

    /* Video/sfondo visibile ma molto meno invasivo */
    .tv-player.media-player-area:has(.radio-card-player) .radio-card-bg,
    .tv-player.media-player-area:has(.radio-card-player) .radio-bg-video {
        position: absolute !important;
        inset: 50% auto auto 50% !important;
        width: 150% !important;
        height: 150% !important;
        min-width: 150% !important;
        min-height: 150% !important;
        transform: translate(-50%, -50%) scale(1.15) !important;
        opacity: .24 !important;
        filter: blur(1px) saturate(.95) contrast(.95) brightness(.7) !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-shade {
        z-index: 1 !important;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .74) 100%),
            linear-gradient(135deg, rgba(120, 0, 12, .22) 0%, rgba(0, 0, 0, .72) 60%, rgba(0, 0, 0, .88) 100%) !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-content>* {
        position: relative !important;
        z-index: 2 !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-logo {
        width: min(46vw, 170px) !important;
        max-height: 42px !important;
        margin: 0 0 6px !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-controls {
        gap: 11px !important;
        margin: 0 !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-main-btn {
        width: 62px !important;
        height: 62px !important;
        min-width: 62px !important;
        min-height: 62px !important;
        font-size: 26px !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-nav-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 22px !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now {
        margin-top: 4px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now strong,
    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        max-width: 100% !important;
    }

    /* Scritte più piccole: nome streaming + brano */
    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now strong {
        font-size: clamp(18px, 5.6vw, 23px) !important;
        line-height: 1.12 !important;
        letter-spacing: -.015em !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now span {
        margin-top: 7px !important;
        font-size: clamp(13px, 4vw, 15px) !important;
        line-height: 1.22 !important;
        font-weight: 700 !important;
    }

    /* Il pannello scelte deve sempre stare sotto al player, non sotto/contro il player */
    .media-panel,
    .tv-panel.media-panel {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 0 !important;
        clear: both !important;
        padding: 14px !important;
        border-radius: 20px !important;
    }

    .media-tabs {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    .media-tab {
        min-height: 48px !important;
        font-size: 15px !important;
        padding: 10px 12px !important;
    }

    #mediaPanelTitle,
    .media-panel h2,
    .tv-panel h2 {
        font-size: 24px !important;
        line-height: 1.1 !important;
        margin: 0 0 14px !important;
    }

    .media-source-list,
    .tv-card-list {
        display: grid !important;
        gap: 12px !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 0 20px !important;
    }

    .media-source-card,
    .tv-card {
        min-height: 0 !important;
        padding: 15px 16px !important;
        border-radius: 17px !important;
    }

    .media-source-card strong,
    .tv-card strong {
        font-size: 17px !important;
        line-height: 1.18 !important;
    }

    .media-source-card span,
    .tv-card span {
        font-size: 14px !important;
        line-height: 1.25 !important;
        margin-top: 5px !important;
    }

    /* Più spazio finale per il footer fisso, così non copre le ultime scelte */
    .home-hero {
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    }

    .page-section:first-of-type {
        padding-top: 18px !important;
    }
}

@media (max-width: 390px) {
    .tv-player.media-player-area:has(.radio-card-player) .radio-card-content {
        min-height: 235px !important;
        padding: 16px 12px 18px !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now strong {
        font-size: 19px !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-now span {
        font-size: 13px !important;
    }
}

/* =========================================================
   101. RIPRISTINO MOBILE - IN ONDA ADESSO + WHATSAPP
   Utilizzato in: index.php pannello streaming su smartphone
   Obiettivo: mantenere visibili i box sotto la lista streaming.
   ========================================================= */

@media (max-width: 700px) {

    .onair-box-mini,
    .interact-box {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 2 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .onair-box-mini {
        margin-top: 18px !important;
        padding: 16px !important;
        border-top: 0 !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .06) !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
    }

    .onair-label {
        margin-bottom: 8px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .onair-box-mini h1,
    .onair-box-mini h2,
    .onair-box-mini h3 {
        margin: 0 0 8px !important;
        font-size: 19px !important;
        line-height: 1.15 !important;
    }

    .onair-box-mini p,
    .song-onair strong,
    .song-onair span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
    }

    .song-onair {
        display: block !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
    }

    .song-label {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .song-onair strong {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    .interact-box {
        margin-top: 14px !important;
        margin-bottom: 22px !important;
        padding: 16px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .06) !important;
        border: 1px solid rgba(255, 255, 255, .10) !important;
    }

    .interact-box h3 {
        margin: 0 0 6px !important;
        font-size: 18px !important;
        line-height: 1.15 !important;
    }

    .interact-box p {
        margin: 0 0 12px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .whatsapp-button {
        display: inline-flex !important;
        width: 100% !important;
        min-height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        font-size: 15px !important;
        font-weight: 900 !important;
    }

    .media-source-list,
    .tv-card-list {
        padding-bottom: 8px !important;
    }

    .tv-panel.media-panel,
    .media-panel {
        padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
        margin-bottom: 18px !important;
    }
}

/* =========================================================
   102. MOBILE - ORDINE BOX IN ONDA / WHATSAPP + VIDEO SFONDO AUDIO
   Utilizzato in: index.php su smartphone
   Obiettivo: mostrare In onda adesso e Interagisci subito sotto player TV/audio,
              poi sotto mettere tabs e lista streaming disponibili.
   ========================================================= */

@media (max-width: 700px) {

    /* Il pannello sotto al player diventa ordinabile */
    .media-panel,
    .tv-panel.media-panel {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* Prima: in onda adesso */
    .onair-box-mini {
        order: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Seconda: interagisci con noi / WhatsApp */
    .interact-box {
        order: 2 !important;
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    /* Terza: scelta Audio / TV */
    .media-tabs {
        order: 3 !important;
        margin-top: 4px !important;
        margin-bottom: 0 !important;
    }

    /* Quarta: titolo e lista streaming disponibili */
    #mediaPanelTitle,
    .media-panel h2,
    .tv-panel h2 {
        order: 4 !important;
        margin-top: 4px !important;
        margin-bottom: 0 !important;
        font-size: 22px !important;
    }

    .media-source-list,
    .tv-card-list {
        order: 5 !important;
        padding-bottom: 18px !important;
    }

    /* Box più compatti per non rubare spazio alla lista */
    .onair-box-mini,
    .interact-box {
        padding: 14px !important;
        border-radius: 17px !important;
    }

    .onair-box-mini h1,
    .onair-box-mini h2,
    .onair-box-mini h3 {
        font-size: 18px !important;
    }

    .interact-box h3 {
        font-size: 17px !important;
    }

    .interact-box p {
        font-size: 13px !important;
    }

    /* Video di sfondo audio più visibile: meno rosso, meno blur, meno oscuramento */
    .tv-player.media-player-area:has(.radio-card-player) .radio-card-bg,
    .tv-player.media-player-area:has(.radio-card-player) .radio-bg-video,
    .radio-card-player .radio-card-bg,
    .radio-card-player .radio-bg-video {
        opacity: .36 !important;
        filter: blur(.2px) saturate(1.05) contrast(1) brightness(.96) !important;
        transform: translate(-50%, -50%) scale(1.04) !important;
    }

    .tv-player.media-player-area:has(.radio-card-player) .radio-card-shade,
    .radio-card-player .radio-card-shade {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .48) 100%),
            linear-gradient(145deg, rgba(120, 0, 12, .14) 0%, rgba(20, 20, 20, .42) 55%, rgba(0, 0, 0, .62) 100%) !important;
    }
}

/* =========================================================
   100. VIDEO SFONDO AUDIO PIU VISIBILE - DESKTOP/MOBILE
   Lasciare in fondo al file.
   ========================================================= */

/* Desktop: riduce il velo rosso e rende più leggibile il video di sfondo */
.radio-card-bg,
.radio-bg-video {
    opacity: .46 !important;
    filter: blur(.35px) saturate(1.12) contrast(1.05) brightness(.95) !important;
    transform: translate(-50%, -50%) scale(1.12) !important;
}

.radio-card-shade {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .50) 100%),
        linear-gradient(145deg, rgba(120, 0, 12, .22) 0%, rgba(20, 20, 20, .46) 52%, rgba(0, 0, 0, .66) 100%) !important;
}

/* Mobile: ancora più pulito, ma resta leggibile il testo */
@media (max-width: 700px) {

    .radio-card-bg,
    .radio-bg-video {
        opacity: .42 !important;
        filter: blur(.25px) saturate(1.05) contrast(1) brightness(.92) !important;
        transform: translate(-50%, -50%) scale(1.08) !important;
    }

    .radio-card-shade {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .58) 100%),
            linear-gradient(145deg, rgba(120, 0, 12, .18) 0%, rgba(20, 20, 20, .50) 52%, rgba(0, 0, 0, .72) 100%) !important;
    }
}



/*ARTICOLI*/

.articoli-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 24px;
    align-items: start;
}

.articoli-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.articolo-mini-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
    text-decoration: none;
    transition: .2s;
}

.articolo-mini-card:hover,
.articolo-mini-card.active {
    border-color: rgba(255, 0, 0, .65);
    background: rgba(255, 0, 0, .12);
}

.articolo-mini-card img {
    width: 96px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
}

.articolo-mini-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.articolo-mini-card p {
    margin: 0;
    font-size: 13px;
    opacity: .75;
}

.articolo-detail {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
}

.articolo-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.articolo-content {
    padding: 26px;
}

.articolo-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e30613;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.articolo-content h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.articolo-lead {
    font-size: 18px;
    opacity: .85;
}

.articolo-html {
    margin-top: 22px;
    line-height: 1.7;
}

.articolo-html img {
    max-width: 100%;
    border-radius: 18px;
}

@media (max-width: 900px) {
    .articoli-layout {
        grid-template-columns: 1fr;
    }

    .articoli-list {
        order: 1;
    }

    .articolo-detail {
        order: 2;
    }
}

.articolo-meta,
.articolo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.articolo-meta span,
.articolo-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 700;
}

.articolo-autore {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 18px;
}

.articolo-autore img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.articolo-autore small {
    display: block;
    opacity: .65;
    font-size: 12px;
}

.articolo-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.articolo-media-grid img,
.articolo-media-grid video,
.articolo-embed iframe {
    width: 100%;
    border-radius: 18px;
}

.articolo-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
}

.articolo-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.articolo-media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}


/* =========================================================
   99. UNIFORMAZIONE PAGINE INTERNE
   Incollare in fondo al file.
   NON modifica index.php: non tocca .home-hero, .home-tv-grid,
   .media-player-area, .radio-card-player e sezioni player home.
   ========================================================= */

:root {
    --rsp-bg: #111;
    --rsp-surface: rgba(255, 255, 255, .06);
    --rsp-surface-2: rgba(255, 255, 255, .09);
    --rsp-border: rgba(255, 255, 255, .12);
    --rsp-border-strong: rgba(255, 255, 255, .18);
    --rsp-text: #fff;
    --rsp-muted: #c9c9c9;
    --rsp-muted-2: #9f9f9f;
    --rsp-primary: #e50914;
    --rsp-primary-dark: #7d0710;
    --rsp-radius: 22px;
    --rsp-radius-sm: 16px;
    --rsp-shadow: 0 20px 45px rgba(0, 0, 0, .25);
    --rsp-max: 1500px;
}

/* Base pagine interne */
.site-main:not(.home-main),
main:not(.home-hero) {
    width: 100%;
}

.page-container,
.palinsesto-page .page-container,
.gallery-page .page-container,
.news-page .page-container,
.contacts-page .page-container,
.charts-page .page-container {
    width: min(var(--rsp-max), calc(100% - 80px));
    margin: 0 auto;
}

/* Spaziatura comune solo pagine interne conosciute */
.palinsesto-page,
.coverage-page,
.eventi-page,
.gallery-page,
.contacts-page,
.news-page,
.podcast-section,
.charts-page,
.replay-page,
.staff-page,
.programmi-page {
    padding: 42px 40px 130px;
    background: radial-gradient(circle at top, #242424 0%, #111 55%);
}

/* Titoli/toolbar uniformi */
.page-hero,
.eventi-hero,
.coverage-hero,
.contacts-hero,
.gallery-hero,
.news-hero,
.podcast-toolbar,
.palinsesto-toolbar,
.charts-toolbar {
    width: min(var(--rsp-max), calc(100% - 80px));
    margin: 0 auto 24px;
    padding: 24px;
    border-radius: var(--rsp-radius);
    background: var(--rsp-surface);
    border: 1px solid var(--rsp-border);
    box-shadow: var(--rsp-shadow);
}

.eventi-hero,
.contacts-hero {
    padding-top: 24px;
}

.page-hero h1,
.page-hero h2,
.eventi-hero h1,
.coverage-hero h1,
.contacts-hero h1,
.gallery-hero h1,
.news-hero h1,
.podcast-toolbar h1,
.podcast-toolbar h2,
.palinsesto-toolbar h2,
.charts-toolbar h1,
.charts-toolbar h2 {
    margin: 0 0 8px;
    color: var(--rsp-text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 900;
}

.page-hero p,
.eventi-hero p,
.coverage-hero p,
.contacts-hero p,
.gallery-hero p,
.news-hero p,
.podcast-toolbar p,
.palinsesto-toolbar p,
.charts-toolbar p {
    margin: 0;
    max-width: 820px;
    color: var(--rsp-muted);
    line-height: 1.5;
}

/* Layout comuni */
.page-section,
.eventi-section,
.gallery-section,
.news-section,
.contacts-section,
.charts-section {
    width: min(var(--rsp-max), calc(100% - 80px));
    margin: 0 auto;
    padding: 0;
}

.eventi-layout,
.podcast-layout,
.contacts-layout,
.coverage-layout,
.gallery-layout,
.news-layout,
.charts-layout {
    width: 100%;
    max-width: var(--rsp-max);
    margin: 0 auto;
    gap: 26px;
}

/* Card e pannelli uniformi */
.tv-panel,
.sidebar,
.site-sidebar,
.coverage-map-card,
.coverage-panel,
.eventi-list,
.evento-detail,
.podcast-sidebar,
.podcast-content,
.podcast-card,
.contacts-card,
.contact-card,
.gallery-card,
.gallery-detail,
.news-card,
.news-detail,
.chart-card,
.palinsesto-card,
.program-modal-card {
    background: var(--rsp-surface);
    border: 1px solid var(--rsp-border);
    border-radius: var(--rsp-radius);
    box-shadow: var(--rsp-shadow);
    color: var(--rsp-text);
}

.coverage-panel,
.eventi-list,
.evento-detail,
.podcast-sidebar,
.podcast-content,
.contacts-card,
.gallery-detail,
.news-detail {
    padding: 22px;
}

/* Elimina differenze e altezze forzate nelle pagine interne */
.eventi-layout,
.podcast-layout {
    height: auto;
    min-height: 0;
    align-items: start;
}

.eventi-list,
.evento-detail,
.podcast-sidebar,
.podcast-content,
.podcast-programs,
.podcast-list {
    max-height: none;
}

.eventi-list,
.evento-detail,
.podcast-programs,
.podcast-list {
    overflow-y: auto;
}

/* Liste laterali coerenti */
.evento-card,
.podcast-program-card,
.tv-card,
.coverage-frequency-card,
.contact-item,
.gallery-item,
.news-list-item,
.chart-list-item {
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--rsp-border);
    border-radius: var(--rsp-radius-sm);
    color: var(--rsp-text);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.evento-card:hover,
.evento-card.active,
.podcast-program-card:hover,
.podcast-program-card.active,
.tv-card:hover,
.tv-card.active,
.contact-item:hover,
.gallery-item:hover,
.gallery-item.active,
.news-list-item:hover,
.news-list-item.active,
.chart-list-item:hover,
.chart-list-item.active {
    background: rgba(229, 9, 20, .18);
    border-color: rgba(229, 9, 20, .68);
    transform: translateY(-1px);
}

/* Bottoni/pill comuni */
.palinsesto-today-btn,
.program-podcast-btn,
.whatsapp-button,
.page-button,
.primary-button,
.evento-action,
.news-button,
.gallery-button,
.chart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--rsp-primary);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.page-button:hover,
.primary-button:hover,
.evento-action:hover,
.news-button:hover,
.gallery-button:hover,
.chart-button:hover,
.program-podcast-btn:hover,
.palinsesto-today-btn:hover {
    background: #ff2630;
}

/* Griglie card comuni */
.palinsesto-grid,
.gallery-grid,
.news-grid,
.charts-grid,
.programmi-grid,
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Immagini cover coerenti */
.content-card img,
.evento-card-img img,
.evento-detail-cover img,
.palinsesto-card-media img,
.gallery-card img,
.news-card img,
.program-card img,
.staff-card img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Testi coerenti */
.palinsesto-desc,
.evento-description,
.podcast-card p,
.coverage-hero p,
.contacts-card p,
.gallery-card p,
.news-card p,
.chart-card p {
    color: var(--rsp-muted);
    line-height: 1.55;
}

.evento-date,
.onair-label,
.coverage-frequency-group h3,
.news-meta,
.gallery-meta,
.chart-meta {
    color: var(--rsp-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Fix pagine eventi: la hero era disallineata rispetto alle altre */
.eventi-hero,
.eventi-section {
    width: min(var(--rsp-max), calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;
}

.eventi-section {
    padding: 0;
}

.eventi-layout {
    grid-template-columns: 340px minmax(0, 1fr);
}

.evento-detail-cover {
    margin: -22px -22px 22px;
    border-radius: var(--rsp-radius) var(--rsp-radius) 0 0;
    overflow: hidden;
}

/* Fix podcast: mantiene due colonne desktop ma con stile uguale */
.podcast-section {
    width: auto;
}

.podcast-layout {
    grid-template-columns: 340px minmax(0, 1fr);
}

.podcast-list {
    padding-bottom: 30px;
}

/* Fix coperture: stessa larghezza e titolo delle altre pagine */
.coverage-page {
    padding-bottom: 130px;
}

.coverage-hero,
.coverage-layout {
    width: min(var(--rsp-max), calc(100% - 80px));
}

.coverage-map-card {
    padding: 14px;
}

.coverage-panel {
    max-height: none;
}

/* Fix contatti */
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
}

/* Form/input generici pagine interne */
input,
textarea,
select {
    max-width: 100%;
}

.contacts-page input,
.contacts-page textarea,
.contacts-page select,
.news-page input,
.news-page textarea,
.news-page select,
.gallery-page input,
.gallery-page textarea,
.gallery-page select,
.page-form input,
.page-form textarea,
.page-form select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--rsp-border);
    background: rgba(0, 0, 0, .28);
    color: #fff;
}

.contacts-page textarea,
.page-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Responsive uniforme */
@media (max-width: 1100px) {

    .page-container,
    .page-hero,
    .eventi-hero,
    .coverage-hero,
    .contacts-hero,
    .gallery-hero,
    .news-hero,
    .podcast-toolbar,
    .palinsesto-toolbar,
    .charts-toolbar,
    .page-section,
    .eventi-section,
    .gallery-section,
    .news-section,
    .contacts-section,
    .charts-section,
    .coverage-layout,
    .coverage-hero {
        width: calc(100% - 36px);
    }

    .palinsesto-page,
    .coverage-page,
    .eventi-page,
    .gallery-page,
    .contacts-page,
    .news-page,
    .podcast-section,
    .charts-page,
    .replay-page,
    .staff-page,
    .programmi-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .eventi-layout,
    .podcast-layout,
    .contacts-layout,
    .coverage-layout,
    .gallery-layout,
    .news-layout,
    .charts-layout {
        grid-template-columns: 1fr;
    }

    .palinsesto-grid,
    .gallery-grid,
    .news-grid,
    .charts-grid,
    .programmi-grid,
    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .page-container,
    .page-hero,
    .eventi-hero,
    .coverage-hero,
    .contacts-hero,
    .gallery-hero,
    .news-hero,
    .podcast-toolbar,
    .palinsesto-toolbar,
    .charts-toolbar,
    .page-section,
    .eventi-section,
    .gallery-section,
    .news-section,
    .contacts-section,
    .charts-section,
    .coverage-layout,
    .coverage-hero {
        width: 100%;
    }

    .palinsesto-page,
    .coverage-page,
    .eventi-page,
    .gallery-page,
    .contacts-page,
    .news-page,
    .podcast-section,
    .charts-page,
    .replay-page,
    .staff-page,
    .programmi-page {
        padding: 24px 14px 110px;
    }

    .page-hero,
    .eventi-hero,
    .coverage-hero,
    .contacts-hero,
    .gallery-hero,
    .news-hero,
    .podcast-toolbar,
    .palinsesto-toolbar,
    .charts-toolbar {
        padding: 18px;
        border-radius: 20px;
    }

    .page-hero h1,
    .page-hero h2,
    .eventi-hero h1,
    .coverage-hero h1,
    .contacts-hero h1,
    .gallery-hero h1,
    .news-hero h1,
    .podcast-toolbar h1,
    .podcast-toolbar h2,
    .palinsesto-toolbar h2,
    .charts-toolbar h1,
    .charts-toolbar h2 {
        font-size: 30px;
    }

    .palinsesto-grid,
    .gallery-grid,
    .news-grid,
    .charts-grid,
    .programmi-grid,
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eventi-list,
    .evento-detail,
    .podcast-sidebar,
    .podcast-content,
    .contacts-card,
    .gallery-detail,
    .news-detail,
    .coverage-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .evento-card {
        grid-template-columns: 84px 1fr;
    }

    .evento-detail-cover {
        height: 230px;
        margin: -16px -16px 18px;
    }

    .evento-info-grid {
        grid-template-columns: 1fr;
    }

    .podcast-selected-head,
    .podcast-card-head,
    .palinsesto-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   UPDATE CARD PALINSESTO STILE TV + OVERLAY PLAYER LIVE
   ========================================================= */
.tv-player.media-player-area {
    position: relative;
    overflow: hidden;
}

.tv-live-player {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: #000;
    overflow: hidden;
    border-radius: inherit;
}

.tv-live-player iframe,
.tv-live-player video {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: block;
    border: 0;
    background: #000;
    object-fit: cover;
}

.tv-live-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 5;
    padding: clamp(14px, 2.4vw, 28px);
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 48%, rgba(0, 0, 0, 0) 100%);
}

.tv-live-player:hover .tv-live-overlay,
.tv-live-player:focus-within .tv-live-overlay {
    opacity: 1;
    transform: translateY(0);
}

.tv-live-badge,
.palinsesto-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 0 0 8px 0;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tv-live-badge,
.palinsesto-badge.live {
    background: #e50914;
    color: #fff;
    animation: none;
    text-shadow: none;
}

.palinsesto-badge.upcoming {
    background: rgba(255, 255, 255, .95);
    color: #111;
}

.tv-live-title {
    margin-top: 12px;
    max-width: 760px;
    font-size: clamp(24px, 4.8vw, 54px);
    line-height: .98;
    font-weight: 950;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .55);
}

.tv-live-time {
    margin-top: 9px;
    font-size: clamp(13px, 1.4vw, 18px);
    font-weight: 850;
    opacity: .95;
}

.tv-live-bio {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.45;
}

.content-card.palinsesto-card-tv,
.palinsesto-card.palinsesto-card-tv {
    position: relative;
    min-width: 320px;
    max-width: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.palinsesto-card-tv:hover {
    transform: scale(1.035);
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .5);
}

.palinsesto-card-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.palinsesto-card-poster img,
.content-card.palinsesto-card-tv .palinsesto-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease, opacity .3s ease;
}

.palinsesto-card-tv:hover .palinsesto-card-poster img {
    transform: scale(1.06);
    opacity: .88;
}

.palinsesto-card-tv .palinsesto-badge {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    z-index: 4;
}

.palinsesto-card-gradient {
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
    z-index: 2;
}

.content-card.palinsesto-card-tv .content-card-body,
.palinsesto-card-body-tv {
    padding: 14px 16px 16px;
}

.palinsesto-card-body-tv h3,
.content-card.palinsesto-card-tv h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 950;
}

.palinsesto-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 800;
}

.palinsesto-progress {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.palinsesto-progress i {
    display: block;
    width: 48%;
    height: 100%;
    border-radius: inherit;
    background: #e50914;
}

.palinsesto-card-tv.palinsesto-futuro .palinsesto-progress i,
.palinsesto-card-tv.palinsesto-prossimo .palinsesto-progress i {
    width: 0;
}

.palinsesto-card-body-tv p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.35;
}

.palinsesto-grid .palinsesto-card .palinsesto-badge {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    z-index: 4;
}

.palinsesto-grid .palinsesto-card-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0));
}

@media (max-width: 900px) {

    .tv-live-player iframe,
    .tv-live-player video {
        min-height: 320px;
    }

    .tv-live-overlay {
        opacity: 1;
        transform: none;
        padding: 14px;
    }

    .tv-live-bio {
        display: none;
    }

    .content-card.palinsesto-card-tv,
    .palinsesto-card.palinsesto-card-tv {
        min-width: 270px;
        max-width: 270px;
    }

    .palinsesto-card-body-tv h3,
    .content-card.palinsesto-card-tv h3 {
        font-size: 19px;
    }
}

/* =========================================================
   SEPARATORI SEZIONI HOME - stile Samsung TV Plus
   Utilizzato in: index.php tra home-hero e page-section
   ========================================================= */
.home-hero,
.page-section {
    position: relative;
}

.home-hero::after,
.page-section::after {
    content: '';
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, .18) 12%,
            rgba(229, 9, 20, .9) 50%,
            rgba(255, 255, 255, .18) 88%,
            transparent 100%);
    pointer-events: none;
}

.page-section::before {
    content: '';
    display: block;
    width: 82px;
    height: 4px;
    margin: -6px 0 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e50914 0%, rgba(229, 9, 20, .15) 100%);
    box-shadow: 0 0 22px rgba(229, 9, 20, .38);
}

.section-head {
    position: relative;
    padding-bottom: 14px;
}

.section-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04), transparent);
}

.section-head h2 {
    position: relative;
    padding-left: 16px;
}

.section-head h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 72%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #e50914;
    box-shadow: 0 0 16px rgba(229, 9, 20, .75);
}

@media (max-width: 700px) {

    .home-hero::after,
    .page-section::after {
        left: 18px;
        right: 18px;
    }

    .page-section::before {
        width: 64px;
        height: 3px;
        margin: -2px 0 18px;
    }

    .section-head {
        padding-bottom: 12px;
    }
}


/* =========================================================
   103. HOME PREMIUM TV PLUS - SEPARATORI, RAIL E CARD
   Utilizzato in: index.php desktop/mobile
   Obiettivo: look più simile a una TV app, senza perdere usabilità mobile.
   ========================================================= */

.samsung-tv-home {
    background:
        radial-gradient(circle at 18% 0%, rgba(229, 9, 20, .22), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .08), transparent 28%),
        linear-gradient(180deg, #080808 0%, #111 42%, #090909 100%);
}

.home-stage {
    position: relative;
    isolation: isolate;
    padding-top: 54px;
    padding-bottom: 48px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, 0) 72%),
        radial-gradient(circle at top left, rgba(229, 9, 20, .20), transparent 38%),
        radial-gradient(circle at top right, rgba(255, 255, 255, .07), transparent 34%),
        #090909;
}

.home-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 72%);
}

.home-stage .home-tv-grid {
    position: relative;
}

.home-stage .home-tv-grid::after {
    content: '';
    position: absolute;
    left: -18px;
    right: -18px;
    bottom: -32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), rgba(229, 9, 20, .9), rgba(255, 255, 255, .18), transparent);
    box-shadow: 0 0 26px rgba(229, 9, 20, .32);
    pointer-events: none;
}

.home-rail {
    position: relative;
    isolation: isolate;
    padding-top: 34px;
    padding-bottom: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
}

.home-rail:nth-of-type(even) {
    background:
        radial-gradient(circle at 92% 20%, rgba(229, 9, 20, .075), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0));
}

.home-rail-divider {
    position: relative;
    height: 34px;
    margin: -14px 0 6px;
    overflow: hidden;
}

.home-rail-divider::before,
.home-rail-divider::after,
.home-rail-divider span {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-rail-divider::before {
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .10) 14%, rgba(255, 255, 255, .22) 34%, rgba(229, 9, 20, .72) 50%, rgba(255, 255, 255, .22) 66%, rgba(255, 255, 255, .10) 86%, transparent 100%);
}

.home-rail-divider::after {
    left: 50%;
    width: min(540px, 74vw);
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(229, 9, 20, .30), transparent 70%);
    filter: blur(8px);
    transform: translate(-50%, -50%);
}

.home-rail-divider span {
    left: 40px;
    width: 86px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e50914, rgba(229, 9, 20, .12));
    box-shadow: 0 0 22px rgba(229, 9, 20, .65);
}

.home-rail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    max-width: 1500px;
    margin: 0 auto 18px;
    padding: 0 0 16px;
}

.home-rail-head::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 48%, transparent 100%);
}

.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-section-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, .9);
}

.home-rail-head h2 {
    padding-left: 0;
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: .98;
    letter-spacing: -.04em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.home-rail-head h2::before {
    display: none;
}

.home-rail-head a {
    position: relative;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.home-rail-head a::after {
    content: '›';
    font-size: 22px;
    line-height: 1;
    margin-top: -1px;
}

.home-rail-head a:hover {
    background: #e50914;
    border-color: #e50914;
    transform: translateY(-1px);
}

.home-card-row {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 4px 2px 22px;
    scroll-padding-left: 2px;
}

.home-card-row::before,
.home-card-row::after {
    content: '';
    position: sticky;
    top: 0;
    z-index: 3;
    flex: 0 0 1px;
    width: 1px;
    pointer-events: none;
}

.home-card-row .content-card {
    position: relative;
    min-width: 286px;
    max-width: 286px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
        #141414;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
    transform-origin: center bottom;
}

.home-card-row .content-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 30%, transparent 70%, rgba(229, 9, 20, .08));
    opacity: .55;
}

.home-card-row .content-card:hover {
    transform: translateY(-7px) scale(1.035);
    border-color: rgba(255, 255, 255, .38);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(229, 9, 20, .24);
}

.home-card-row .content-card img {
    height: 162px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-card-row .content-card-body {
    min-height: 118px;
    padding: 15px 16px 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .12));
}

.home-card-row .content-card h3 {
    font-size: 18px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -.015em;
}

.home-card-row .content-card p {
    color: rgba(255, 255, 255, .68);
}

.home-rail-palinsesto .content-card,
.home-rail-palinsesto .palinsesto-card-tv {
    min-width: 330px;
    max-width: 330px;
}

.home-rail-palinsesto .content-card img {
    height: auto;
}

/* Mantiene i separatori belli anche sulle sezioni vecchie non convertite */
.samsung-tv-home .page-section:not(.home-rail)::before {
    width: 92px;
    height: 5px;
    background: linear-gradient(90deg, #e50914, rgba(229, 9, 20, .08));
    box-shadow: 0 0 24px rgba(229, 9, 20, .45);
}

@media (min-width: 901px) {
    .home-card-row {
        padding-left: 2px;
        padding-right: 46px;
    }

    .home-rail {
        overflow: hidden;
    }

    .home-rail::before,
    .home-rail::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 2;
        width: 92px;
        pointer-events: none;
    }

    .home-rail::before {
        left: 0;
        background: linear-gradient(90deg, #090909 0%, rgba(9, 9, 9, 0) 100%);
    }

    .home-rail::after {
        right: 0;
        background: linear-gradient(270deg, #090909 0%, rgba(9, 9, 9, 0) 100%);
    }
}

@media (max-width: 1100px) {
    .home-stage {
        padding-top: 30px;
        padding-bottom: 34px;
    }

    .home-rail {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .home-rail-head,
    .home-card-row {
        max-width: 100%;
    }

    .home-card-row .content-card {
        min-width: 260px;
        max-width: 260px;
    }

    .home-rail-palinsesto .content-card,
    .home-rail-palinsesto .palinsesto-card-tv {
        min-width: 295px;
        max-width: 295px;
    }
}

@media (max-width: 700px) {
    .samsung-tv-home {
        background:
            radial-gradient(circle at 20% 0%, rgba(229, 9, 20, .16), transparent 34%),
            linear-gradient(180deg, #080808 0%, #111 58%, #090909 100%);
    }

    .home-stage {
        padding-top: 18px !important;
        padding-bottom: 22px !important;
    }

    .home-stage::before {
        background-size: 42px 42px;
        opacity: .6;
    }

    .home-stage .home-tv-grid::after {
        left: 6px;
        right: 6px;
        bottom: -18px;
    }

    .home-rail {
        padding: 22px 12px 28px !important;
    }

    .home-rail-divider {
        height: 26px;
        margin: -6px 0 4px;
    }

    .home-rail-divider span {
        left: 0;
        width: 58px;
        height: 4px;
    }

    .home-rail-head {
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 13px;
    }

    .home-section-kicker {
        margin-bottom: 6px;
        font-size: 10px;
        letter-spacing: .11em;
    }

    .home-rail-head h2 {
        font-size: clamp(24px, 7.4vw, 32px);
        letter-spacing: -.035em;
    }

    .home-rail-head a {
        min-height: 34px;
        flex: 0 0 auto;
        padding: 0 12px;
        font-size: 12px;
    }

    .home-card-row {
        width: calc(100% + 12px);
        margin-left: 0;
        padding: 4px 12px 20px 0;
        gap: 13px;
        scroll-snap-type: x mandatory;
    }

    .home-card-row .content-card {
        min-width: min(76vw, 286px) !important;
        max-width: min(76vw, 286px) !important;
        border-radius: 20px;
        scroll-snap-align: start;
    }

    .home-card-row .content-card:hover {
        transform: none;
    }

    .home-card-row .content-card img {
        height: 142px;
    }

    .home-card-row .content-card-body {
        min-height: 104px;
        padding: 13px 14px 15px;
    }

    .home-card-row .content-card h3 {
        font-size: 17px;
    }

    .home-rail-palinsesto .content-card,
    .home-rail-palinsesto .palinsesto-card-tv {
        min-width: min(82vw, 310px) !important;
        max-width: min(82vw, 310px) !important;
    }
}

@media (max-width: 390px) {
    .home-rail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-rail-head a {
        width: fit-content;
    }

    .home-card-row .content-card {
        min-width: 82vw !important;
        max-width: 82vw !important;
    }
}


/* =========================================================
   104. FIX TV PLUS HOME + STILE UNICO PAGINE
   Correzioni: sezioni non sovrapposte, card non tagliate in hover,
   descrizione programma sotto al titolo nello stream TV.
   Lasciare questa sezione in fondo al file.
   ========================================================= */

/* HOME: sfondi ordinati, senza sovrapposizioni tra sezioni */
.samsung-tv-home {
    background:
        radial-gradient(circle at 18% -4%, rgba(229, 9, 20, .20), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .055), transparent 24%),
        linear-gradient(180deg, #080808 0%, #101010 48%, #080808 100%) !important;
}

.samsung-tv-home .home-hero,
.samsung-tv-home .page-section,
.samsung-tv-home .home-stage,
.samsung-tv-home .home-rail {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
}

.samsung-tv-home .home-hero::after,
.samsung-tv-home .page-section::after,
.samsung-tv-home .page-section::before {
    display: none !important;
}

.home-stage {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, 0) 76%),
        radial-gradient(circle at top left, rgba(229, 9, 20, .16), transparent 34%),
        #090909 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.home-stage::before {
    z-index: -1 !important;
    opacity: .72 !important;
}

.home-stage .home-tv-grid::after {
    bottom: -22px !important;
    left: 0 !important;
    right: 0 !important;
    opacity: .72 !important;
}

.home-rail {
    margin: 0 !important;
    padding-top: 38px !important;
    padding-bottom: 42px !important;
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.home-rail::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    width: auto !important;
    pointer-events: none !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(229, 9, 20, .07), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .024), rgba(255, 255, 255, 0) 72%) !important;
}

.home-rail:nth-of-type(even)::before {
    background:
        radial-gradient(circle at 92% 8%, rgba(229, 9, 20, .075), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0) 72%) !important;
}

.home-rail::after {
    display: none !important;
}

.home-rail-divider {
    height: 22px !important;
    margin: 0 auto 14px !important;
    max-width: 1500px;
    overflow: visible !important;
}

.home-rail-divider::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .11) 12%, rgba(229, 9, 20, .75) 38%, rgba(255, 255, 255, .20) 58%, transparent 100%) !important;
}

.home-rail-divider::after {
    opacity: .55 !important;
}

.home-rail-divider span {
    left: 0 !important;
}

.home-rail-head {
    position: relative !important;
    z-index: 5 !important;
}

/* Righe orizzontali: spazio extra per l'hover, nessun taglio verticale */
.home-card-row {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-top: 18px !important;
    padding-bottom: 34px !important;
    scroll-padding-left: 12px;
}

.home-card-row .content-card {
    overflow: hidden !important;
    transform-origin: center center !important;
    will-change: transform;
}

.home-card-row .content-card:hover {
    transform: translateY(-8px) scale(1.025) !important;
    z-index: 9 !important;
}

.home-card-row .content-card img {
    transform-origin: center center;
}

.home-card-row .content-card:hover img {
    transform: scale(1.045) !important;
}

/* Evita che le sfumature laterali coprano visivamente le card zoomate */
@media (min-width: 901px) {
    .home-rail {
        overflow: visible !important;
    }

    .home-rail::before {
        inset: 0 !important;
    }

    .home-card-row {
        padding-left: 12px !important;
        padding-right: 80px !important;
    }
}

/* Stream TV: info più leggibili, descrizione subito sotto il nome programma */
.tv-live-overlay {
    max-width: min(900px, 92%);
    padding: clamp(16px, 2.8vw, 34px) !important;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .54) 48%, rgba(0, 0, 0, 0) 100%) !important;
}

.tv-live-title {
    margin-top: 12px !important;
    max-width: 820px !important;
}

.tv-live-bio {
    max-width: 780px !important;
    margin: 10px 0 0 !important;
    color: rgba(255, 255, 255, .90) !important;
    font-size: clamp(13px, 1.22vw, 17px) !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-live-time {
    margin-top: 10px !important;
    color: rgba(255, 255, 255, .88) !important;
}

/* Stile comune premium per tutte le pagine interne */
:root {
    --rsp-page-bg: #090909;
    --rsp-page-surface: rgba(255, 255, 255, .065);
    --rsp-page-surface-strong: rgba(255, 255, 255, .095);
    --rsp-page-border: rgba(255, 255, 255, .13);
    --rsp-page-border-strong: rgba(255, 255, 255, .22);
    --rsp-page-muted: rgba(255, 255, 255, .72);
    --rsp-page-soft: rgba(255, 255, 255, .055);
}

body:not(.samsung-tv-home) {
    background:
        radial-gradient(circle at 18% 0%, rgba(229, 9, 20, .14), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .055), transparent 24%),
        linear-gradient(180deg, #080808 0%, #111 55%, #090909 100%) !important;
}

.palinsesto-page,
.coverage-page,
.eventi-page,
.gallery-page,
.contacts-page,
.contatti-page,
.news-page,
.podcast-section,
.charts-page,
.replay-page,
.staff-page,
.programmi-page,
.privacy-page {
    background: transparent !important;
}

.page-hero,
.eventi-hero,
.coverage-hero,
.contatti-hero,
.contacts-hero,
.gallery-hero,
.news-hero,
.staff-hero-inner,
.podcast-toolbar,
.palinsesto-toolbar,
.charts-toolbar,
.privacy-card,
.contatti-card,
.contatti-map-card,
.coverage-map-card,
.coverage-panel,
.eventi-list,
.evento-detail,
.podcast-sidebar,
.podcast-content,
.podcast-card,
.gallery-sidebar,
.gallery-detail-card,
.gallery-empty,
.staff-card,
.articolo-detail,
.articolo-mini-card,
.palinsesto-card,
.program-modal-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .038)) !important;
    border: 1px solid var(--rsp-page-border) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .34) !important;
}

.evento-card,
.gallery-item,
.podcast-program-card,
.tv-card,
.coverage-frequency-card,
.contatto-item,
.footer-stream-card,
.media-source-card {
    background: var(--rsp-page-soft) !important;
    border: 1px solid var(--rsp-page-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.evento-card:hover,
.evento-card.active,
.gallery-item:hover,
.gallery-item.active,
.podcast-program-card:hover,
.podcast-program-card.active,
.tv-card:hover,
.tv-card.active,
.media-source-card:hover,
.media-source-card.active,
.contatto-item:hover {
    background: rgba(229, 9, 20, .18) !important;
    border-color: rgba(229, 9, 20, .62) !important;
    transform: translateY(-2px);
}

.page-hero,
.eventi-hero,
.coverage-hero,
.contatti-hero,
.contacts-hero,
.gallery-hero,
.news-hero,
.podcast-toolbar,
.palinsesto-toolbar,
.charts-toolbar {
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.eventi-hero::before,
.coverage-hero::before,
.contatti-hero::before,
.contacts-hero::before,
.gallery-hero::before,
.news-hero::before,
.podcast-toolbar::before,
.palinsesto-toolbar::before,
.charts-toolbar::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(229, 9, 20, .9), rgba(255, 255, 255, .18), transparent);
    pointer-events: none;
}

.page-hero h1,
.eventi-hero h1,
.coverage-hero h1,
.contatti-hero h1,
.contacts-hero h1,
.gallery-hero h1,
.news-hero h1,
.staff-hero h1,
.podcast-toolbar h1,
.podcast-toolbar h2,
.palinsesto-toolbar h2,
.charts-toolbar h1,
.charts-toolbar h2 {
    letter-spacing: -.035em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

.content-card,
.palinsesto-card,
.evento-card,
.gallery-media-card,
.staff-card,
.articolo-mini-card,
.podcast-card {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease !important;
}

.content-card:hover,
.palinsesto-card:hover,
.gallery-media-card:hover,
.staff-card:hover,
.articolo-mini-card:hover,
.podcast-card:hover {
    border-color: var(--rsp-page-border-strong) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .48) !important;
}

/* Mobile: niente sovrapposizioni, niente hover/zoom */
@media (max-width: 700px) {

    .samsung-tv-home .home-stage,
    .samsung-tv-home .home-rail {
        overflow: hidden !important;
    }

    .home-stage {
        padding-top: 18px !important;
        padding-bottom: 22px !important;
    }

    .home-rail {
        padding: 24px 12px 30px !important;
        border-top-color: rgba(255, 255, 255, .09);
    }

    .home-rail-divider {
        height: 18px !important;
        margin: 0 0 10px !important;
    }

    .home-card-row {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-top: 4px !important;
        padding-bottom: 18px !important;
    }

    .home-card-row .content-card,
    .home-card-row .content-card:hover,
    .content-card:hover,
    .palinsesto-card:hover {
        transform: none !important;
    }

    .home-card-row .content-card:hover img {
        transform: none !important;
    }

    .tv-live-overlay {
        opacity: 1 !important;
        transform: none !important;
        max-width: 100%;
        padding: 12px !important;
    }

    .tv-live-title {
        font-size: clamp(22px, 7vw, 32px) !important;
    }

    .tv-live-bio {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        font-size: 12px !important;
        line-height: 1.32 !important;
    }

    .tv-live-time {
        font-size: 12px !important;
    }

    .page-hero::before,
    .eventi-hero::before,
    .coverage-hero::before,
    .contatti-hero::before,
    .contacts-hero::before,
    .gallery-hero::before,
    .news-hero::before,
    .podcast-toolbar::before,
    .palinsesto-toolbar::before,
    .charts-toolbar::before {
        left: 16px;
        right: 16px;
    }
}


/* =========================================================
   103. RIFINITURA TV PLUS V2 - BORDI, CARD NON TAGLIATE,
        DESCRIZIONE PROGRAMMA STREAMING
   Lasciare in fondo al file CSS.
   ========================================================= */

/* Bordo generale più definito per homepage e player */
.samsung-tv-home .home-stage,
.samsung-tv-home .home-rail,
.samsung-tv-home .home-hero,
.samsung-tv-home .page-section,
.samsung-tv-home .tv-player,
.samsung-tv-home .media-panel,
.samsung-tv-home .tv-panel,
.samsung-tv-home .content-card,
.samsung-tv-home .palinsesto-card-tv,
.samsung-tv-home .tv-live-player,
.samsung-tv-home .radio-card-player {
    border: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 18px 48px rgba(0, 0, 0, .34) !important;
}

.samsung-tv-home .home-rail,
.samsung-tv-home .page-section {
    border-left-color: rgba(255, 255, 255, .075) !important;
    border-right-color: rgba(255, 255, 255, .075) !important;
    border-bottom-color: rgba(255, 255, 255, .11) !important;
}

.samsung-tv-home .section-head,
.samsung-tv-home .home-rail-head {
    border-bottom: 1px solid rgba(255, 255, 255, .13) !important;
}

.samsung-tv-home .media-source-card,
.samsung-tv-home .tv-card,
.samsung-tv-home .footer-stream-card,
.samsung-tv-home .onair-box-mini,
.samsung-tv-home .interact-box {
    border: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

/* Lo zoom non taglia più la card: niente scale sull'intera card, solo immagine interna */
.samsung-tv-home .home-card-row,
.samsung-tv-home .card-row {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-top: 20px !important;
    padding-bottom: 44px !important;
}

.samsung-tv-home .home-card-row .content-card,
.samsung-tv-home .card-row .content-card {
    overflow: hidden !important;
    transform: translateZ(0) !important;
    outline: 1px solid transparent;
}

.samsung-tv-home .home-card-row .content-card:hover,
.samsung-tv-home .card-row .content-card:hover,
.samsung-tv-home .palinsesto-card-tv:hover {
    transform: translateY(-7px) !important;
    outline-color: rgba(255, 255, 255, .24) !important;
    border-color: rgba(255, 255, 255, .34) !important;
    box-shadow:
        0 0 0 1px rgba(229, 9, 20, .35),
        0 22px 58px rgba(0, 0, 0, .52) !important;
}

.samsung-tv-home .home-card-row .content-card:hover img,
.samsung-tv-home .card-row .content-card:hover img,
.samsung-tv-home .palinsesto-card-tv:hover .palinsesto-card-poster img {
    transform: scale(1.045) !important;
}

/* Overlay streaming: descrizione sempre sotto al nome programma */
.tv-live-overlay {
    display: block !important;
    width: min(900px, 94%) !important;
    max-width: min(900px, 94%) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-radius: 0 0 24px 0 !important;
    backdrop-filter: blur(8px);
}

.tv-live-title {
    display: block !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.tv-live-bio {
    display: -webkit-box !important;
    margin: 10px 0 0 !important;
    max-width: 800px !important;
    color: rgba(255, 255, 255, .92) !important;
    font-size: clamp(14px, 1.25vw, 18px) !important;
    line-height: 1.42 !important;
    font-weight: 650 !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}

.tv-live-bio:empty {
    display: none !important;
}

.tv-live-time {
    display: inline-flex !important;
    width: fit-content !important;
    margin-top: 12px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .13) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
}

/* Stile coerente anche sulle altre pagine: bordi più leggibili */
.page-hero,
.eventi-hero,
.coverage-hero,
.contatti-hero,
.contacts-hero,
.gallery-hero,
.news-hero,
.staff-hero-inner,
.podcast-toolbar,
.palinsesto-toolbar,
.charts-toolbar,
.privacy-card,
.contatti-card,
.contatti-map-card,
.coverage-map-card,
.coverage-panel,
.eventi-list,
.evento-detail,
.podcast-sidebar,
.podcast-content,
.podcast-card,
.gallery-sidebar,
.gallery-detail-card,
.gallery-empty,
.staff-card,
.articolo-detail,
.articolo-mini-card,
.palinsesto-card,
.program-modal-card {
    border: 1px solid rgba(255, 255, 255, .16) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 22px 55px rgba(0, 0, 0, .36) !important;
}

.evento-card,
.gallery-item,
.podcast-program-card,
.tv-card,
.coverage-frequency-card,
.contatto-item,
.footer-stream-card,
.media-source-card,
.gallery-media-card,
.articolo-media-link,
.evento-info-grid div {
    border: 1px solid rgba(255, 255, 255, .15) !important;
}

@media (max-width: 900px) {
    .tv-live-overlay {
        opacity: 1 !important;
        transform: none !important;
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
        border-radius: 0 0 18px 0 !important;
    }

    .tv-live-bio {
        -webkit-line-clamp: 2;
        font-size: 12px !important;
        line-height: 1.32 !important;
    }
}

@media (max-width: 700px) {

    .samsung-tv-home .home-card-row,
    .samsung-tv-home .card-row {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-top: 6px !important;
        padding-bottom: 20px !important;
    }

    .samsung-tv-home .home-card-row .content-card:hover,
    .samsung-tv-home .card-row .content-card:hover,
    .samsung-tv-home .palinsesto-card-tv:hover {
        transform: none !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 18px 48px rgba(0, 0, 0, .34) !important;
    }

    .samsung-tv-home .home-card-row .content-card:hover img,
    .samsung-tv-home .card-row .content-card:hover img,
    .samsung-tv-home .palinsesto-card-tv:hover .palinsesto-card-poster img {
        transform: none !important;
    }

    .tv-live-overlay {
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
        padding: 11px 12px 12px !important;
        border-radius: 0 0 16px 0 !important;
    }

    .tv-live-title {
        font-size: clamp(20px, 6.4vw, 30px) !important;
        line-height: 1.02 !important;
    }

    .tv-live-bio {
        margin-top: 8px !important;
        -webkit-line-clamp: 2;
        font-size: 12px !important;
        line-height: 1.28 !important;
    }

    .tv-live-time {
        margin-top: 8px !important;
        padding: 5px 9px !important;
        font-size: 11px !important;
    }
}

/* =========================================================
   104. FIX TV PLUS V3 - SPAZI LATERALI + OVERLAY STREAM SFUMATO
   Lasciare in fondo al file CSS.
   ========================================================= */

/* Homepage: le sezioni non devono stare attaccate al bordo del browser */
.samsung-tv-home .home-stage,
.samsung-tv-home .home-rail,
.samsung-tv-home .page-section {
    width: 100% !important;
    padding-left: clamp(24px, 4vw, 64px) !important;
    padding-right: clamp(24px, 4vw, 64px) !important;
    overflow: visible !important;
}

.samsung-tv-home .home-tv-grid,
.samsung-tv-home .home-rail-head,
.samsung-tv-home .home-card-row,
.samsung-tv-home .card-row,
.samsung-tv-home .home-rail-divider {
    width: min(1500px, 100%) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.samsung-tv-home .home-rail-head,
.samsung-tv-home .section-head {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.samsung-tv-home .home-section-kicker,
.samsung-tv-home .section-head h2 {
    margin-left: 0 !important;
}

/* Righe più ariose e niente contenuti tagliati ai lati */
.samsung-tv-home .home-card-row,
.samsung-tv-home .card-row {
    padding-left: 8px !important;
    padding-right: 96px !important;
    scroll-padding-left: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Card: niente taglio quando passi sopra. Si alza la card, zoom solo interno immagine. */
.samsung-tv-home .home-card-row .content-card,
.samsung-tv-home .card-row .content-card,
.samsung-tv-home .palinsesto-card-tv {
    overflow: hidden !important;
    transform-origin: center center !important;
}

.samsung-tv-home .home-card-row .content-card:hover,
.samsung-tv-home .card-row .content-card:hover,
.samsung-tv-home .palinsesto-card-tv:hover {
    transform: translateY(-8px) !important;
}

.samsung-tv-home .home-card-row .content-card:hover img,
.samsung-tv-home .card-row .content-card:hover img,
.samsung-tv-home .palinsesto-card-tv:hover .palinsesto-card-poster img {
    transform: scale(1.04) !important;
}

/* Player streaming: via effetto glass/card; sfumatura su tutto lo stream */
.tv-live-player {
    position: relative !important;
    overflow: hidden !important;
}

.tv-live-player::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity .24s ease !important;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .58) 34%, rgba(0, 0, 0, .18) 67%, rgba(0, 0, 0, .08) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .30) 34%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .58) 100%) !important;
}

.tv-live-player:hover::after,
.tv-live-player:focus-within::after {
    opacity: 1 !important;
}

.tv-live-overlay {
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    z-index: 4 !important;
    padding: clamp(22px, 4vw, 56px) clamp(22px, 4vw, 58px) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    pointer-events: none !important;
}

.tv-live-badge {
    border-radius: 3px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35) !important;
}

.tv-live-title {
    max-width: 760px !important;
    margin-top: 18px !important;
    color: #fff !important;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .82) !important;
}

.tv-live-bio {
    max-width: 820px !important;
    margin-top: 12px !important;
    color: rgba(255, 255, 255, .94) !important;
    font-size: clamp(14px, 1.35vw, 19px) !important;
    line-height: 1.42 !important;
    font-weight: 800 !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .82) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.tv-live-time {
    margin-top: 16px !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(255, 255, 255, .26) !important;
    background: rgba(0, 0, 0, .28) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .70) !important;
}

/* Bordi più puliti su tutta la home */
.samsung-tv-home .home-stage,
.samsung-tv-home .home-rail {
    border-left: 0 !important;
    border-right: 0 !important;
}

.samsung-tv-home .tv-player,
.samsung-tv-home .media-panel,
.samsung-tv-home .content-card,
.samsung-tv-home .palinsesto-card-tv,
.samsung-tv-home .onair-box-mini,
.samsung-tv-home .interact-box {
    border-color: rgba(255, 255, 255, .18) !important;
}

/* Mobile: stessi spazi, overlay più compatto e sempre leggibile */
@media (max-width: 900px) {

    .samsung-tv-home .home-stage,
    .samsung-tv-home .home-rail,
    .samsung-tv-home .page-section {
        padding-left: 18px !important;
        padding-right: 18px !important;
        overflow: hidden !important;
    }

    .tv-live-player::after {
        opacity: 1 !important;
        background:
            linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .34) 48%, rgba(0, 0, 0, .48) 100%) !important;
    }

    .tv-live-overlay {
        opacity: 1 !important;
        transform: none !important;
        padding: 14px !important;
        min-height: auto !important;
        justify-content: flex-start !important;
    }

    .tv-live-title {
        max-width: 100% !important;
        margin-top: 10px !important;
        font-size: clamp(21px, 6.8vw, 32px) !important;
        line-height: 1.02 !important;
    }

    .tv-live-bio {
        max-width: 100% !important;
        margin-top: 8px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
    }

    .tv-live-time {
        margin-top: 8px !important;
        padding: 5px 9px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 700px) {

    .samsung-tv-home .home-stage,
    .samsung-tv-home .home-rail,
    .samsung-tv-home .page-section {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .samsung-tv-home .home-card-row,
    .samsung-tv-home .card-row {
        padding-left: 0 !important;
        padding-right: 28px !important;
        overflow-y: hidden !important;
    }

    .samsung-tv-home .section-head h2 {
        font-size: clamp(28px, 9vw, 38px) !important;
    }
}

/* =========================================================
   105. FIX EVENTI - IMMAGINI CARD E DETTAGLIO
   Utilizzato in: eventi.php
   Sinistra: immagini quadrate 1024x1024
   Destra: immagine dettaglio proporzione 220x135
   Lasciare in fondo al file CSS.
   ========================================================= */

/* COLONNA SINISTRA - card evento con immagine quadrata */
.evento-card-img {
    width: 92px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #292929 !important;
    flex-shrink: 0 !important;
}

.evento-card-img img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* Placeholder immagine card sinistra */
.evento-card-img .evento-no-img,
.evento-no-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #e30613, #151515);
}

/* COLONNA DESTRA - dettaglio evento in proporzione 220x135 */
.evento-detail-cover {
    width: calc(100% + 44px) !important;
    height: auto !important;
    aspect-ratio: 220 / 135 !important;
    margin: -22px -22px 22px !important;
    overflow: hidden !important;
    border-radius: var(--rsp-radius, 22px) var(--rsp-radius, 22px) 0 0 !important;
    background: #1d1d1d !important;
}

.evento-detail-cover img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* Placeholder dettaglio proporzionato */
.evento-detail-cover .evento-no-img,
.evento-no-img.big {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 220 / 135 !important;
}

/* Mobile eventi */
@media (max-width: 700px) {
    .evento-card {
        grid-template-columns: 84px 1fr !important;
    }

    .evento-card-img {
        width: 84px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .evento-detail-cover {
        width: calc(100% + 32px) !important;
        height: auto !important;
        aspect-ratio: 220 / 135 !important;
        margin: -16px -16px 18px !important;
    }
}

@media (max-width: 620px) {
    .evento-card {
        grid-template-columns: 82px 1fr !important;
    }

    .evento-card-img {
        width: 82px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }
}


/* =========================================================
   FIX HOME INDEX 2026 - SEZIONE ASCOLTA / GUARDA TV
   Incolla questo blocco in fondo a studiopiu.css
   ========================================================= */
.samsung-tv-home .home-stage {
    padding: clamp(22px, 3vw, 46px) clamp(14px, 3vw, 40px) 36px;
    background:
        radial-gradient(circle at 12% 0%, rgba(229, 9, 20, .24), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .10), transparent 26%),
        linear-gradient(180deg, #151515 0%, #090909 100%);
}

.samsung-tv-home .home-tv-grid {
    width: min(1500px, 100%);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: clamp(18px, 2vw, 30px);
    align-items: stretch;
}

.samsung-tv-home .media-player-area,
.samsung-tv-home .tv-live-player {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.samsung-tv-home .tv-live-player {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.samsung-tv-home .tv-live-player iframe,
.samsung-tv-home .tv-live-player video,
.samsung-tv-home .media-player-area iframe,
.samsung-tv-home .media-player-area video {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    border: 0;
    object-fit: cover;
}

.samsung-tv-home .media-panel {
    width: 100%;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
        radial-gradient(circle at top left, rgba(229, 9, 20, .18), transparent 46%),
        #141414;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.samsung-tv-home .media-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 5px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.samsung-tv-home .media-tab {
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 13px 12px;
    color: #fff;
    background: transparent;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.samsung-tv-home .media-tab.active {
    background: #fff;
    color: #070707;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

.samsung-tv-home .media-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1;
    letter-spacing: -.04em;
}

.samsung-tv-home .media-source-list {
    display: grid;
    gap: 12px;
    max-height: 292px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 6px 2px 0;
}

.samsung-tv-home .media-source-card,
.samsung-tv-home .tv-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 74px;
    padding: 16px 18px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.samsung-tv-home .media-source-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #e50914;
    opacity: 0;
    transition: opacity .18s ease;
}

.samsung-tv-home .media-source-card:hover,
.samsung-tv-home .media-source-card.active {
    transform: translateY(-2px);
    border-color: rgba(229, 9, 20, .70);
    background: linear-gradient(135deg, rgba(229, 9, 20, .44), rgba(96, 12, 18, .36));
    box-shadow: 0 18px 34px rgba(0, 0, 0, .30);
}

.samsung-tv-home .media-source-card.active::before,
.samsung-tv-home .media-source-card:hover::before {
    opacity: 1;
}

.samsung-tv-home .media-source-card strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.15;
}

.samsung-tv-home .media-source-card span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .80);
    font-size: 12px;
    font-weight: 800;
}

.samsung-tv-home .onair-box-mini {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(135deg, rgba(0, 0, 0, .30), rgba(255, 255, 255, .045));
}

.samsung-tv-home .onair-label {
    margin-bottom: 8px;
    color: #ff1722;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}

.samsung-tv-home .onair-box-mini h1 {
    margin: 0 0 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.samsung-tv-home .onair-box-mini p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
}

.samsung-tv-home .interact-box {
    margin-top: 16px;
    padding: 20px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .15);
    background:
        radial-gradient(circle at 92% 12%, rgba(37, 211, 102, .20), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
}

.samsung-tv-home .interact-box h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.1;
}

.samsung-tv-home .interact-box p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .78);
}

.samsung-tv-home .whatsapp-button {
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff1722, #c90010);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(229, 9, 20, .28);
}

.samsung-tv-home .tv-live-overlay {
    position: absolute;
    left: clamp(16px, 3vw, 34px);
    right: clamp(16px, 3vw, 34px);
    bottom: clamp(16px, 3vw, 34px);
    z-index: 5;
    max-width: 760px;
    padding: 54px 24px 22px;
    border-radius: 26px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .48), rgba(0, 0, 0, .08));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .45);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.samsung-tv-home .tv-live-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

.samsung-tv-home .tv-live-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.samsung-tv-home .tv-live-badge {
    display: inline-flex;
    margin-bottom: 9px;
    color: #ff1722;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
}

.samsung-tv-home .tv-live-title {
    max-width: 100%;
    font-size: clamp(28px, 4.2vw, 58px);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -.06em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .65);
}

.samsung-tv-home .tv-live-bio {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 650px;
    overflow: hidden;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.35;
}

.samsung-tv-home .tv-live-time {
    margin-top: 10px;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    font-weight: 850;
}

@media (max-width: 1100px) {
    .samsung-tv-home .home-tv-grid {
        grid-template-columns: 1fr;
    }

    .samsung-tv-home .media-panel {
        max-width: none;
    }

    .samsung-tv-home .media-source-list {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .samsung-tv-home .home-stage {
        padding: 16px 14px 22px;
    }

    .samsung-tv-home .home-tv-grid {
        gap: 14px;
    }

    .samsung-tv-home .media-player-area,
    .samsung-tv-home .tv-live-player {
        border-radius: 20px;
    }

    .samsung-tv-home .tv-live-player,
    .samsung-tv-home .media-player-area {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .samsung-tv-home .media-panel {
        padding: 15px;
        border-radius: 24px;
    }

    .samsung-tv-home .media-tab {
        padding: 11px 8px;
        font-size: 15px;
    }

    .samsung-tv-home .media-panel h2 {
        font-size: 24px;
    }

    .samsung-tv-home .media-source-card,
    .samsung-tv-home .tv-card {
        min-height: 66px;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .samsung-tv-home .onair-box-mini {
        margin-top: 14px;
        padding: 15px;
    }

    .samsung-tv-home .onair-box-mini h1 {
        font-size: 22px;
    }

    .samsung-tv-home .interact-box {
        padding: 18px;
    }

    .samsung-tv-home .tv-live-overlay {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 42px 14px 14px;
        border-radius: 18px;
        opacity: .96;
    }

    .samsung-tv-home .tv-live-title {
        font-size: 20px;
        letter-spacing: -.03em;
    }

    .samsung-tv-home .tv-live-bio,
    .samsung-tv-home .tv-live-time {
        display: none;
    }

    .samsung-tv-home .tv-live-close {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }
}


/* =========================================================
   FIX HOME LIVE 2026 - Badge leggibile + refresh overlay
   Incollare in fondo al file CSS se non sostituisci tutto.
   ========================================================= */
.samsung-tv-home .tv-live-badge {
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    margin-bottom: 14px;
    padding: 7px 13px 6px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff101b 0%, #b9000b 100%);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 10px 22px rgba(229, 9, 20, .36), 0 0 0 1px rgba(0, 0, 0, .26) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    letter-spacing: .13em;
    line-height: 1;
}

.samsung-tv-home .tv-live-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .58) 48%, rgba(0, 0, 0, .10) 100%),
        radial-gradient(circle at 0% 10%, rgba(229, 9, 20, .32), transparent 42%);
}

.samsung-tv-home .tv-live-title,
.samsung-tv-home .tv-live-time,
.samsung-tv-home .tv-live-bio {
    text-shadow: 0 3px 16px rgba(0, 0, 0, .85);
}

@media (max-width: 700px) {
    .samsung-tv-home .tv-live-badge {
        min-height: 22px;
        padding: 6px 10px 5px;
        font-size: 10px;
        letter-spacing: .10em;
    }

    .samsung-tv-home .tv-live-overlay {
        padding-top: 40px;
        background: linear-gradient(0deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .42) 70%, transparent 100%);
    }
}

/* =========================================================
   FIX DEFINITIVO BADGE LIVE HOME - incollato in fondo
   ========================================================= */
.samsung-tv-home .tv-live-overlay .tv-live-badge,
.tv-live-player .tv-live-overlay .tv-live-badge,
.tv-live-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: max-content !important;
    min-height: 28px !important;
    padding: 8px 14px 7px !important;
    margin: 0 0 18px !important;
    border-radius: 7px !important;
    background: #e50914 !important;
    background-image: linear-gradient(135deg, #ff1722 0%, #c70012 100%) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    text-indent: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .85) !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    box-shadow: 0 12px 26px rgba(229, 9, 20, .45), 0 0 0 1px rgba(0, 0, 0, .35) inset !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    -webkit-text-fill-color: #ffffff !important;
}

.samsung-tv-home .tv-live-overlay .tv-live-badge::before,
.tv-live-player .tv-live-overlay .tv-live-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, .9);
    flex: 0 0 auto;
}

.samsung-tv-home .tv-live-overlay,
.tv-live-player .tv-live-overlay {
    z-index: 20 !important;
}

@media (max-width: 700px) {

    .samsung-tv-home .tv-live-overlay .tv-live-badge,
    .tv-live-player .tv-live-overlay .tv-live-badge,
    .tv-live-badge {
        min-height: 24px !important;
        padding: 7px 11px 6px !important;
        margin-bottom: 12px !important;
        font-size: 10px !important;
        letter-spacing: .11em !important;
    }
}

/* =========================================================
   FIX FINALE HOME STREAMING - Badge IN DIRETTA leggibile
   Unificato nel CSS principale, non serve più home-fix.css
   ========================================================= */
.samsung-tv-home .tv-live-player .tv-live-overlay .tv-live-badge,
.tv-live-player .tv-live-overlay .tv-live-badge {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: max-content !important;
    min-height: 30px !important;
    margin: 0 0 18px 0 !important;
    padding: 9px 15px 8px 15px !important;
    border-radius: 7px !important;
    overflow: visible !important;
    background: #e50914 !important;
    background-image: linear-gradient(135deg, #ff1b26 0%, #d00012 48%, #9f000b 100%) !important;
    border: 1px solid rgba(255, 255, 255, .38) !important;
    box-shadow:
        0 12px 28px rgba(229, 9, 20, .48),
        0 0 0 1px rgba(0, 0, 0, .40) inset !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    -webkit-text-fill-color: transparent !important;
}

.samsung-tv-home .tv-live-player .tv-live-overlay .tv-live-badge::before,
.tv-live-player .tv-live-overlay .tv-live-badge::before {
    content: '' !important;
    width: 7px !important;
    height: 7px !important;
    margin-right: 8px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, .95) !important;
    flex: 0 0 auto !important;
}

.samsung-tv-home .tv-live-player .tv-live-overlay .tv-live-badge::after,
.tv-live-player .tv-live-overlay .tv-live-badge::after {
    content: 'IN DIRETTA' !important;
    display: inline-block !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .85) !important;
    white-space: nowrap !important;
}

.samsung-tv-home .tv-live-player .tv-live-overlay,
.tv-live-player .tv-live-overlay {
    z-index: 30 !important;
}

@media (max-width: 700px) {

    .samsung-tv-home .tv-live-player .tv-live-overlay .tv-live-badge,
    .tv-live-player .tv-live-overlay .tv-live-badge {
        min-height: 25px !important;
        margin-bottom: 12px !important;
        padding: 7px 11px 6px 11px !important;
        border-radius: 6px !important;
    }

    .samsung-tv-home .tv-live-player .tv-live-overlay .tv-live-badge::after,
    .tv-live-player .tv-live-overlay .tv-live-badge::after {
        font-size: 10px !important;
        letter-spacing: .10em !important;
    }
}


/* =========================================================
   106. FIX EVENTI FULLSCREEN + MOBILE DETTAGLIO PRIMA
   Utilizzato in: eventi.php + api/eventi.php
   Lasciare in fondo al file CSS.
   ========================================================= */

.eventi-list-toggle {
    display: none;
}

.evento-card-img {
    width: 104px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #292929 !important;
}

.evento-card-img img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.evento-detail-cover {
    width: calc(100% + 44px) !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: -22px -22px 22px !important;
    overflow: hidden !important;
    border-radius: var(--rsp-radius, 22px) var(--rsp-radius, 22px) 0 0 !important;
    background: #1d1d1d !important;
}

.evento-detail-cover img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

@media (max-width: 1100px) {
    .eventi-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .evento-detail {
        order: 1 !important;
    }

    .eventi-list-toggle {
        order: 2 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin: 14px 0 0;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 999px;
        background: #e50914;
        color: #fff;
        font-weight: 950;
        cursor: pointer;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
    }

    .eventi-list {
        order: 3 !important;
        display: none !important;
    }

    .eventi-list.is-open {
        display: grid !important;
        margin-top: 14px;
    }
}

@media (max-width: 700px) {
    .evento-card {
        grid-template-columns: 96px 1fr !important;
    }

    .evento-card-img {
        width: 96px !important;
        aspect-ratio: 16 / 10 !important;
    }

    .evento-detail-cover {
        width: calc(100% + 32px) !important;
        aspect-ratio: 16 / 9 !important;
        margin: -16px -16px 18px !important;
    }

    .evento-detail-body h2 {
        font-size: clamp(28px, 9vw, 40px) !important;
    }
}

@media (max-width: 420px) {
    .evento-card {
        grid-template-columns: 88px 1fr !important;
    }

    .evento-card-img {
        width: 88px !important;
    }
}

/* =========================================================
   PAGINA PREVENTIVI
   Utilizzato in: preventivi.php
   ========================================================= */

.preventivi-page {
    padding: 42px 40px 130px;
    background:
        radial-gradient(circle at 18% 0%, rgba(229, 9, 20, .16), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .055), transparent 24%),
        linear-gradient(180deg, #080808 0%, #111 55%, #090909 100%);
    color: #fff;
}

.preventivi-wrap {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
}

.preventivi-hero,
.preventivi-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .038));
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 22px 55px rgba(0, 0, 0, .36);
}

.preventivi-hero {
    position: relative;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 24px;
}

.preventivi-hero::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(229, 9, 20, .9), rgba(255, 255, 255, .18), transparent);
}

.preventivi-kicker {
    margin-bottom: 10px;
    color: #e50914;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.preventivi-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -.035em;
}

.preventivi-hero p {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

.preventivi-card {
    padding: clamp(18px, 3vw, 32px);
}

.preventivi-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.preventivi-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.preventivi-section h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
}

.preventivi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.preventivi-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preventivi-field.full {
    grid-column: 1 / -1;
}

.preventivi-field label {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, .82);
}

.preventivi-field input,
.preventivi-field select,
.preventivi-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .30);
    color: #fff;
    outline: none;
}

.preventivi-field textarea {
    min-height: 130px;
    resize: vertical;
}

.preventivi-field input:focus,
.preventivi-field select:focus,
.preventivi-field textarea:focus {
    border-color: rgba(229, 9, 20, .72);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, .14);
}

.preventivi-type-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.preventivi-type-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.preventivi-type-switch span {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
    transition: .2s ease;
}

.preventivi-type-switch input:checked+span {
    background: linear-gradient(135deg, #e50914, #7d0710);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 18px 42px rgba(229, 9, 20, .22);
}

.preventivi-type-switch span:hover {
    transform: translateY(-2px);
}

.preventivo-block[hidden] {
    display: none !important;
}

.preventivi-check-list {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .24);
}

.preventivi-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .10);
    cursor: pointer;
    transition: .18s ease;
}

.preventivi-check:hover {
    background: rgba(229, 9, 20, .14);
    border-color: rgba(229, 9, 20, .45);
}

.preventivi-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: #e50914;
}

.preventivi-check span {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.preventivi-check-empty {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    padding: 8px;
}

.preventivi-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.preventivi-submit {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.preventivi-submit:hover {
    background: #ff2630;
}

.preventivi-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.preventivo-alert {
    margin-top: 20px;
    margin-bottom: 18px;
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 850;
}

.preventivo-alert-error {
    background: rgba(229, 9, 20, .16);
    border: 1px solid rgba(229, 9, 20, .38);
    color: #ffd1d1;
}

.preventivo-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .78);
}

.preventivo-popup.is-visible {
    display: flex;
}

.preventivo-popup-box {
    width: min(520px, 100%);
    padding: 34px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(145deg, #1b1b1b, #050505);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}

.preventivo-popup-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e50914;
    font-size: 34px;
    font-weight: 950;
}

.preventivo-popup-box h3 {
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
}

.preventivo-popup-box p {
    margin: 14px 0 24px;
    color: rgba(255, 255, 255, .76);
    line-height: 1.55;
}

.preventivo-popup-close {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .preventivi-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .preventivi-wrap {
        width: calc(100% - 36px);
    }
}

@media (max-width: 700px) {
    .preventivi-page {
        padding: 24px 14px 110px;
    }

    .preventivi-wrap {
        width: 100%;
    }

    .preventivi-hero,
    .preventivi-card {
        border-radius: 20px;
    }

    .preventivi-hero {
        padding: 18px;
    }

    .preventivi-grid,
    .preventivi-type-switch {
        grid-template-columns: 1fr;
    }

    .preventivi-actions {
        justify-content: stretch;
    }

    .preventivi-submit {
        width: 100%;
    }
}

/* =========================================================
   106. FIX EVENTI MOBILE - DETTAGLIO SOPRA + LISTA SOTTO
   Utilizzato in: eventi.php
   Desktop invariato: lista a sinistra, dettaglio a destra.
   Mobile/tablet: dettaglio evento subito visibile sopra, elenco eventi sotto.
   Lasciare questo blocco in fondo al file CSS.
   ========================================================= */

/* Desktop: conferma layout originale */
@media (min-width: 1101px) {
    .eventi-layout {
        display: grid !important;
        grid-template-columns: 340px minmax(0, 1fr) !important;
        gap: 26px !important;
        align-items: stretch !important;
    }

    .eventi-list {
        order: initial !important;
        height: calc(100vh - 260px) !important;
        min-height: 540px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .evento-detail {
        order: initial !important;
        height: calc(100vh - 260px) !important;
        min-height: 540px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Tablet e mobile: dettaglio sopra, lista sotto */
@media (max-width: 1100px) {
    .eventi-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        height: auto !important;
        min-height: 0 !important;
        align-items: stretch !important;
        overflow: visible !important;
    }

    .evento-detail {
        order: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .eventi-list {
        order: 2 !important;
        display: grid !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 24px !important;
    }
}

@media (max-width: 700px) {
    .eventi-page {
        padding-bottom: calc(130px + env(safe-area-inset-bottom)) !important;
    }

    .eventi-hero,
    .eventi-section {
        width: 100% !important;
    }

    .eventi-layout {
        gap: 16px !important;
    }

    .evento-detail {
        border-radius: 20px !important;
        scroll-margin-top: 88px !important;
    }

    .eventi-list {
        border-radius: 20px !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    .eventi-list::before {
        content: 'Altri eventi';
        display: block;
        margin: 0 0 4px;
        color: #fff;
        font-size: 22px;
        line-height: 1.1;
        font-weight: 950;
        letter-spacing: -.03em;
    }

    .evento-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 12px !important;
        min-height: 106px !important;
        padding: 12px !important;
    }

    .evento-card-img {
        width: 82px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .evento-detail-cover {
        width: calc(100% + 32px) !important;
        margin: -16px -16px 18px !important;
        aspect-ratio: 220 / 135 !important;
    }

    .evento-detail-body {
        padding: 16px !important;
    }

    .evento-detail-body h2 {
        font-size: clamp(27px, 8.5vw, 38px) !important;
    }

    .evento-info-grid {
        grid-template-columns: 1fr !important;
    }

    .evento-map {
        height: 280px !important;
    }
}

@media (max-width: 420px) {
    .evento-card {
        grid-template-columns: 76px minmax(0, 1fr) !important;
    }

    .evento-card-img {
        width: 76px !important;
    }

    .evento-card h2 {
        font-size: 16px !important;
    }

    .evento-card p {
        font-size: 12px !important;
    }
}

/* =========================================================
   107. FIX EVENTI - LISTA USA FORMATO MEDIUM VISIVO
   Utilizzato in: eventi.php
   Nota: il CSS non sceglie il file immagine; quello lo fa eventi.php/API.
   Questo blocco evita che la card lista venga trattata come fullscreen 16:9
   e la forza al formato quadrato corretto per le immagini medium.
   Lasciare in fondo al file CSS.
   ========================================================= */

.eventi-list .evento-card-img {
    width: 92px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #292929 !important;
    flex: 0 0 92px !important;
}

.eventi-list .evento-card-img img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.evento-detail .evento-detail-cover {
    width: calc(100% + 44px) !important;
    height: auto !important;
    aspect-ratio: 220 / 135 !important;
    margin: -22px -22px 22px !important;
    overflow: hidden !important;
    border-radius: var(--rsp-radius, 22px) var(--rsp-radius, 22px) 0 0 !important;
    background: #1d1d1d !important;
}

.evento-detail .evento-detail-cover img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 700px) {
    .eventi-list .evento-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
    }

    .eventi-list .evento-card-img {
        width: 82px !important;
        flex-basis: 82px !important;
        aspect-ratio: 1 / 1 !important;
    }

    .evento-detail .evento-detail-cover {
        width: calc(100% + 32px) !important;
        margin: -16px -16px 18px !important;
        aspect-ratio: 220 / 135 !important;
    }
}

@media (max-width: 420px) {
    .eventi-list .evento-card {
        grid-template-columns: 76px minmax(0, 1fr) !important;
    }

    .eventi-list .evento-card-img {
        width: 76px !important;
        flex-basis: 76px !important;
    }
}

/* =========================================================
   106. FIX PODCAST MOBILE - PUNTATE SOPRA, PROGRAMMI SOTTO
   Utilizzato in: podcast.php
   Desktop invariato. Su mobile: contenuto podcast sopra,
   lista programmi sotto; card programma con immagine medium.
   Lasciare in fondo al file CSS.
   ========================================================= */

/* Card programma podcast con immagine a sinistra */
.podcast-program-card {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
}

.podcast-program-card-img,
.podcast-program-image,
.podcast-program-thumb {
    width: 84px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #292929 !important;
    flex-shrink: 0 !important;
}

.podcast-program-card-img img,
.podcast-program-image img,
.podcast-program-thumb img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.podcast-program-card-info,
.podcast-program-info {
    min-width: 0 !important;
}

.podcast-program-card strong,
.podcast-program-card span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

.podcast-program-card strong {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

.podcast-program-card span {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.podcast-program-no-img {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(135deg, #e30613, #151515) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

@media (min-width: 901px) {
    .podcast-layout {
        grid-template-columns: 340px minmax(0, 1fr) !important;
    }

    .podcast-sidebar {
        order: 1 !important;
    }

    .podcast-content {
        order: 2 !important;
    }
}

@media (max-width: 900px) {
    .podcast-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 18px !important;
        align-items: stretch !important;
    }

    /* Mobile: prima le puntate/podcast */
    .podcast-content {
        order: 1 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Mobile: sotto la lista programmi */
    .podcast-sidebar {
        order: 2 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .podcast-programs,
    .podcast-list {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .podcast-programs {
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    }

    .podcast-list {
        padding-bottom: 24px !important;
    }

    .podcast-selected-head,
    .podcast-card-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .podcast-mode-switch {
        width: 100% !important;
    }

    .podcast-mode-switch button {
        flex: 1 !important;
    }
}

@media (max-width: 700px) {
    .podcast-section {
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
    }

    .podcast-sidebar,
    .podcast-content,
    .podcast-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .podcast-program-card {
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
        border-radius: 17px !important;
    }

    .podcast-program-card-img,
    .podcast-program-image,
    .podcast-program-thumb {
        width: 78px !important;
        border-radius: 13px !important;
    }

    .podcast-program-card strong {
        font-size: 15px !important;
    }

    .podcast-program-card span {
        font-size: 12px !important;
    }

    .podcast-player {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .podcast-player iframe {
        min-height: 220px !important;
    }

    .podcast-player video {
        max-height: 320px !important;
        object-fit: contain !important;
    }
}

@media (max-width: 390px) {
    .podcast-program-card {
        grid-template-columns: 70px minmax(0, 1fr) !important;
    }

    .podcast-program-card-img,
    .podcast-program-image,
    .podcast-program-thumb {
        width: 70px !important;
    }
}

/* PODCAST: altezza fissa card puntate + scroll */
.podcast-content {
    max-height: 720px !important;
    overflow: hidden !important;
}

.podcast-list {
    max-height: 590px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    padding-bottom: 20px !important;
}

.podcast-card {
    min-height: 210px !important;
}

@media (max-width: 900px) {
    .podcast-content {
        max-height: 720px !important;
        overflow: hidden !important;
    }

    .podcast-list {
        max-height: 560px !important;
        overflow-y: auto !important;
    }
}


/* =========================================================
   GALLERY MOBILE - dettaglio sopra, elenco sotto con scroll
   Desktop invariato
   ========================================================= */
@media (max-width: 900px) {
    .gallery-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .gallery-detail {
        order: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .gallery-sidebar {
        order: 2 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .gallery-list {
        max-height: 560px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 8px !important;
        padding-bottom: 18px !important;
    }

    .gallery-detail-card,
    .gallery-empty {
        height: auto !important;
        overflow: visible !important;
    }

    .gallery-media-grid {
        max-height: 620px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 8px !important;
        padding-bottom: 18px !important;
    }
}

@media (max-width: 620px) {
    .gallery-list {
        max-height: 520px !important;
    }

    .gallery-media-grid {
        max-height: 560px !important;
    }
}

/* =========================================================
   FIX ARTICOLI MOBILE - dettaglio sopra, lista sotto
   Desktop invariato
   ========================================================= */
@media (max-width: 900px) {
    .articoli-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .articolo-detail {
        order: 1 !important;
    }

    .articoli-list {
        order: 2 !important;
    }
}


/* =========================================================
   106. FIX EVENTI DETTAGLIO - IMMAGINE ORIGINALE + INFO
   Utilizzato in: eventi.php
   Obiettivo:
   - elenco eventi: immagine medium quadrata
   - dettaglio: immagine originale a sinistra, cliccabile
   - info evento a destra
   - rimuove il vecchio comportamento fullscreen 220x135 nel dettaglio
   Lasciare in fondo al file CSS.
   ========================================================= */

.eventi-layout {
    grid-template-columns: 340px minmax(0, 1fr) !important;
    align-items: stretch !important;
}

.evento-detail {
    height: auto !important;
    min-height: 540px !important;
    padding: 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.evento-detail-inner {
    display: grid !important;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr) !important;
    gap: 26px !important;
    align-items: start !important;
    width: 100% !important;
}

.evento-detail-cover {
    position: sticky !important;
    top: 96px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: visible !important;
    background: transparent !important;
}

.evento-detail-cover a {
    display: block !important;
    width: 100% !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #111 !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .36) !important;
    cursor: zoom-in !important;
}

.evento-detail-cover img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 680px !important;
    object-fit: contain !important;
    background: #111 !important;
}

.evento-detail-cover .evento-no-img,
.evento-no-img.big {
    width: 100% !important;
    min-height: 360px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 22px !important;
    display: grid !important;
    place-items: center !important;
}

.evento-detail-body {
    min-width: 0 !important;
    padding: 0 !important;
}

.evento-detail-body h2 {
    margin: 0 0 18px !important;
}

.evento-info-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 18px 0 !important;
}

.evento-info-grid div {
    padding: 16px !important;
    border-radius: 16px !important;
}

.evento-description {
    margin-top: 18px !important;
}

.evento-actions {
    margin: 22px 0 !important;
}

.evento-map {
    width: 100% !important;
    height: 340px !important;
    margin-top: 20px !important;
    border-radius: 18px !important;
}

/* Elenco eventi: conferma medium quadrata */
.evento-card-img {
    width: 92px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
}

.evento-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Tablet/mobile: dettaglio sopra, immagine sopra info, elenco sotto */
@media (max-width: 1100px) {
    .eventi-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .evento-detail {
        order: 1 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .eventi-list {
        order: 2 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .evento-detail-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .evento-detail-cover {
        position: relative !important;
        top: auto !important;
    }

    .evento-detail-cover img {
        max-height: none !important;
    }

    .evento-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .evento-detail {
        padding: 16px !important;
    }

    .evento-detail-inner {
        gap: 18px !important;
    }

    .evento-detail-cover,
    .evento-detail-cover a,
    .evento-detail-cover .evento-no-img,
    .evento-no-img.big {
        border-radius: 18px !important;
    }

    .evento-info-grid {
        grid-template-columns: 1fr !important;
    }

    .evento-map {
        height: 280px !important;
    }

    .evento-card {
        grid-template-columns: 84px 1fr !important;
    }

    .evento-card-img {
        width: 84px !important;
    }
}

@media (max-width: 620px) {
    .evento-card {
        grid-template-columns: 82px 1fr !important;
    }

    .evento-card-img {
        width: 82px !important;
    }
}


/* =========================================================
   106. EVENTI - IMMAGINE ORIGINAL LIBERA + POPUP INTERNO
   Utilizzato in: eventi.php
   ========================================================= */

.evento-detail-cover.evento-detail-cover-free,
.evento-detail .evento-detail-cover.evento-detail-cover-free {
    width: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 0 22px 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.evento-image-open {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    cursor: zoom-in !important;
    text-align: left !important;
    overflow: visible !important;
}

.evento-image-open img,
.evento-detail-cover.evento-detail-cover-free img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.evento-detail {
    overflow-x: auto !important;
}

body.evento-modal-open {
    overflow: hidden !important;
}

.evento-image-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    place-items: center;
    padding: 28px;
}

.evento-image-modal.is-open {
    display: grid;
}

.evento-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(8px);
}

.evento-image-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 56px);
    overflow: auto;
    border-radius: 20px;
    background: rgba(0, 0, 0, .55);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .72);
}

.evento-image-modal-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 56px);
    object-fit: contain;
}

.evento-image-modal-close {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(10, 10, 10, .72);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.evento-image-modal-close:hover {
    background: #e50914;
    border-color: #e50914;
}

@media (max-width: 700px) {

    .evento-detail-cover.evento-detail-cover-free,
    .evento-detail .evento-detail-cover.evento-detail-cover-free {
        margin: 0 0 18px 0 !important;
    }

    .evento-image-open img,
    .evento-detail-cover.evento-detail-cover-free img {
        max-width: 100% !important;
    }

    .evento-image-modal {
        padding: 14px;
    }

    .evento-image-modal-dialog,
    .evento-image-modal-dialog img {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
    }

    .evento-image-modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
}