/**
 * WHITE — Podcast WOW on Web
 * Sezioni generate dagli shortcode [podcast_*] + classi di supporto
 * per i widget Elementor della pagina Podcast.
 */

.white-podcast,
.podcast-section {
    --podcast-ink: #111111;
    --podcast-ink-60: rgba(17, 17, 17, .6);
    --podcast-ink-50: rgba(17, 17, 17, .5);
    --podcast-ink-40: rgba(17, 17, 17, .4);
    --podcast-ink-15: rgba(17, 17, 17, .15);
    --podcast-ease: cubic-bezier(.16, 1, .3, 1);
}

.white-podcast .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.white-podcast [hidden] {
    display: none !important;
}

body .white-podcast button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    text-align: left;
    text-transform: none;
    letter-spacing: inherit;
    cursor: pointer;
    box-shadow: none;
}

body .white-podcast button:hover,
body .white-podcast button:focus {
    background: none;
    color: inherit;
}

.white-podcast figure {
    margin: 0;
}

.white-podcast p {
    margin: 0;
}


/* ==================================================
   TITOLI ELEMENTOR (classi da mettere sui widget)
   ================================================== */

.elementor-widget.podcast-eyebrow .elementor-heading-title,
.podcast-eyebrow {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .5em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .4);
}

.elementor-widget.podcast-title .elementor-heading-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: #111;
}

.elementor-widget.podcast-title-xl .elementor-heading-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: #111;
}

@media (min-width: 768px) {
    .elementor-widget.podcast-title .elementor-heading-title {
        font-size: 48px;
    }

    .elementor-widget.podcast-title-xl .elementor-heading-title {
        font-size: 60px;
    }
}


/* ==================================================
   PLAYER (dentro il widget Video "podcast-feat-video")
   ================================================== */

.white-podcast-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

/* Versione mobile verticale 9:16 (non più alta dell'85% dello schermo) */
.white-podcast-player.is-vertical {
    aspect-ratio: 9 / 16;
    width: min(100%, calc(85svh * 9 / 16));
    margin-left: auto;
    margin-right: auto;
}

.white-podcast-player__media,
.white-podcast-player__poster,
.white-podcast-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.white-podcast .white-podcast-player__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    color: #fff;
    background: linear-gradient(to top, rgba(17, 17, 17, .6), rgba(17, 17, 17, 0) 60%);
    transition: opacity .5s var(--podcast-ease);
}

.white-podcast .white-podcast-player__play:hover,
.white-podcast .white-podcast-player__play:focus {
    color: #fff;
    background: linear-gradient(to top, rgba(17, 17, 17, .6), rgba(17, 17, 17, 0) 60%);
}

.white-podcast-player.is-playing .white-podcast-player__play {
    opacity: 0;
    pointer-events: none;
}

.white-podcast-player__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.white-podcast-player__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid #fff;
    border-radius: 50%;
    transition: background-color .5s var(--podcast-ease), color .5s var(--podcast-ease);
}

.white-podcast-player__circle svg {
    margin-left: 4px;
}

.white-podcast-player__play:hover .white-podcast-player__circle,
.white-podcast-player__play:focus-visible .white-podcast-player__circle {
    background: #fff;
    color: #111;
}

.white-podcast-player__play:focus-visible {
    outline: 1px solid #fff;
    outline-offset: -8px;
}

.white-podcast-player__label {
    display: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .white-podcast-player__label {
        display: inline;
    }
}

@media (min-width: 768px) {
    .white-podcast .white-podcast-player__play {
        padding: 40px;
    }

    .white-podcast-player__circle {
        width: 80px;
        height: 80px;
    }
}


/* ==================================================
   CARD
   ================================================== */

.white-podcast .white-podcast-card {
    display: block;
    width: 100%;
}

.white-podcast-card:focus-visible {
    outline: 1px solid #111;
    outline-offset: 4px;
}

.white-podcast-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(17, 17, 17, .05);
}

.white-podcast-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--podcast-ease);
    will-change: transform;
}

.white-podcast-card:hover .white-podcast-card__media img {
    transform: scale(1.045);
}

.white-podcast-card__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 12px;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.white-podcast-card__body {
    margin-top: 20px;
}

.white-podcast .white-podcast-card__meta {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--podcast-ink-40);
}

.white-podcast .white-podcast-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: #111;
    transition: opacity .5s var(--podcast-ease);
}

.white-podcast-card--big .white-podcast-card__title {
    font-size: 24px;
}

.white-podcast-card:hover .white-podcast-card__title {
    opacity: .5;
}

@media (min-width: 768px) {
    .white-podcast .white-podcast-card__title {
        font-size: 20px;
    }

    .white-podcast-card--big .white-podcast-card__title {
        font-size: 30px;
    }
}


/* ==================================================
   ULTIME USCITE
   ================================================== */

.white-podcast-latest {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 24px;
}

@media (min-width: 640px) {
    .white-podcast-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .white-podcast-latest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .white-podcast-latest .white-podcast-card.is-2 {
        margin-top: 64px;
    }
}


/* ==================================================
   SELETTORE VISTA  [podcast_view]
   ================================================== */

.white-podcast-view {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #111;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.white-podcast.white-podcast-view button {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    transition: background-color .45s var(--podcast-ease), color .45s var(--podcast-ease);
}

.white-podcast.white-podcast-view button + button {
    border-left: 1px solid #111;
}

.white-podcast.white-podcast-view button[aria-pressed="true"] {
    background: #111;
    color: #fff;
}


/* ==================================================
   ARCHIVIO  [podcast_archive]
   ================================================== */

.white-podcast-archive {
    scroll-margin-top: 120px;
}

.white-podcast-archive__bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #111;
}

@media (min-width: 1024px) {
    .white-podcast-archive__bar {
        flex-direction: row;
        align-items: center;
    }
}

.white-podcast-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.white-podcast .white-podcast-chip {
    padding: 8px 16px;
    border: 1px solid #111;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .35em;
    text-transform: uppercase;
    transition: background-color .45s var(--podcast-ease), color .45s var(--podcast-ease);
}

.white-podcast .white-podcast-chip span {
    margin-left: 4px;
    opacity: .5;
}

.white-podcast .white-podcast-chip[aria-pressed="true"],
.white-podcast .white-podcast-chip[aria-pressed="true"]:hover {
    background: #111;
    color: #fff;
}

.white-podcast-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(17, 17, 17, .3);
    color: var(--podcast-ink-40);
    transition: border-color .3s ease;
}

.white-podcast-search:focus-within {
    border-color: #111;
}

.white-podcast-search svg {
    flex-shrink: 0;
}

.white-podcast .white-podcast-search input[type="search"] {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: #111;
    outline: none;
}

.white-podcast-search input::placeholder {
    color: var(--podcast-ink-40);
    opacity: 1;
}

.white-podcast-search input::-webkit-search-cancel-button {
    filter: grayscale(1);
}

@media (min-width: 1024px) {
    .white-podcast-search {
        width: 320px;
    }
}

.white-podcast .white-podcast-archive__count {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--podcast-ink-40);
}

.white-podcast .white-podcast-archive__empty {
    padding: 96px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--podcast-ink-40);
}

.white-podcast-archive__more {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.white-podcast .white-podcast-btn {
    padding: 24px 48px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    transition: background-color .45s var(--podcast-ease), color .45s var(--podcast-ease);
}

.white-podcast .white-podcast-btn:hover,
.white-podcast .white-podcast-btn:focus-visible {
    background: #111;
    color: #fff;
}


/* Intestazione gruppo categoria */

.white-podcast-group {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 80px 0 20px;
    border-bottom: 1px solid #111;
}

.white-podcast-group.is-first {
    padding-top: 24px;
}

.white-podcast-group__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.white-podcast-group__title h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    text-transform: uppercase;
    color: #111;
}

.white-podcast-group__title span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--podcast-ink-40);
}

.white-podcast .white-podcast-group__all {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.white-podcast-hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .white-podcast-group__title {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
    }

    .white-podcast-hide-mobile {
        display: inline;
    }
}

@media (min-width: 768px) {
    .white-podcast-group__title h4 {
        font-size: 36px;
    }
}


/* Vista indice */

.white-podcast-index {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.white-podcast-index > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.white-podcast .white-podcast-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 4px 16px;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--podcast-ink-15);
    transition:
        padding .5s var(--podcast-ease),
        background-color .5s var(--podcast-ease),
        color .5s var(--podcast-ease);
}

.white-podcast .white-podcast-row:hover {
    padding-left: 24px;
    padding-right: 24px;
    background: #111;
    color: #fff;
}

.white-podcast-row:focus-visible {
    outline: 1px solid #111;
    outline-offset: 4px;
}

.white-podcast-row__num {
    grid-column: span 2;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.white-podcast-row.is-now .white-podcast-row__num::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: .6rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.white-podcast-row__guest {
    grid-column: span 10;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.white-podcast-row__role,
.white-podcast-row__cat,
.white-podcast-row__dur {
    font-size: 11px;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--podcast-ink-50);
    transition: color .5s var(--podcast-ease);
}

.white-podcast-row__role,
.white-podcast-row__cat {
    display: none;
}

.white-podcast-row__dur {
    grid-column: 3 / span 8;
    font-variant-numeric: tabular-nums;
}

.white-podcast-row__go {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
}

.white-podcast-arrow {
    transition: transform .5s var(--podcast-ease);
}

.white-podcast-row:hover .white-podcast-arrow {
    transform: translateX(8px);
}

.white-podcast-row:hover .white-podcast-row__role,
.white-podcast-row:hover .white-podcast-row__cat,
.white-podcast-row:hover .white-podcast-row__dur {
    color: rgba(255, 255, 255, .5);
}

@media (min-width: 768px) {
    .white-podcast .white-podcast-row {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .white-podcast-row__num {
        grid-column: span 1;
        font-size: 16px;
    }

    .white-podcast-row__guest {
        grid-column: span 6;
        font-size: 30px;
    }

    /* tablet: niente colonna categoria, più spazio al ruolo */
    .white-podcast-row__role {
        display: block;
        grid-column: span 3;
    }

    .white-podcast-row__dur {
        grid-column: span 1;
    }

    .white-podcast-row__mobile-role {
        display: none;
    }

    .white-podcast-row__go {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .white-podcast-row__guest {
        grid-column: span 5;
    }

    .white-podcast-row__role {
        grid-column: span 2;
    }

    .white-podcast-row__cat {
        display: block;
        grid-column: span 2;
    }
}

@media (min-width: 1280px) {
    .white-podcast-row__guest {
        grid-column: span 6;
    }

    .white-podcast-row__cat {
        grid-column: span 1;
    }
}

/* testi lunghi: niente sovrapposizioni tra colonne */
.white-podcast-row > span {
    min-width: 0;
}

.white-podcast-row__role,
.white-podcast-row__cat,
.white-podcast-row__dur {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .white-podcast-row__dur {
        overflow: visible;
        letter-spacing: .15em;
        text-align: right;
    }
}


/* Vista griglia */

.white-podcast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px 24px;
    margin-top: 32px;
}

.white-podcast-grid > .white-podcast-group {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .white-podcast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .white-podcast-grid {
        gap: 48px 32px;
    }
}

@media (min-width: 1024px) {
    .white-podcast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* gruppi per categoria: 4 per riga */
    .white-podcast-grid:has(.white-podcast-group) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .white-podcast-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* Anteprima che segue il cursore (vista indice, desktop) */

.white-podcast-hover {
    position: fixed;
    z-index: 30;
    width: 320px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.white-podcast-hover.is-visible {
    opacity: 1;
}

.white-podcast-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==================================================
   TICKER  [podcast_ticker]
   ================================================== */

.white-podcast-ticker {
    overflow: hidden;
    padding: 16px 0;
    border-top: 1px solid rgba(17, 17, 17, .1);
    border-bottom: 1px solid rgba(17, 17, 17, .1);
    background: #fff;
    white-space: nowrap;
    user-select: none;
}

.white-podcast-ticker__track {
    display: inline-flex;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .6);
    animation: marquee 28s linear infinite;
}

/* padding al posto di gap: il loop a -50% resta senza scatti */
.white-podcast-ticker__track > span {
    padding-right: 64px;
}


/* ==================================================
   REVEAL
   ================================================== */

.white-podcast-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .9s var(--podcast-ease),
        transform .9s var(--podcast-ease);
}

.white-podcast-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .white-podcast-reveal {
        opacity: 1;
        transform: none;
    }

    .white-podcast-ticker__track {
        animation: none;
    }
}
