:root {
    --gold: #C8A96E;
    --gold-light: #E8D5B0;
    --gold-dark: #9A7B4F;
    --stone: #F5F0E8;
    --stone-dark: #E8DFD1;
    --ink: #1A1A1A;
    --ink-light: #4A4A4A;
    --ink-muted: #8A8478;
    --terracotta: #C47A5A;
    --olive: #7A8B6F;
    --sea: #5A7B8A;
    --white: #FEFCF9;
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 8px 30px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 20px 60px rgba(26, 26, 26, 0.12);
    --radius: 4px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ====== HEADER ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--gold-dark);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--stone);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown>a::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.5;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--stone-dark);
    border-radius: 8px;
    padding: 8px;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Lang toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gold);
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
}

.lang-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--gold-dark);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: rgba(200, 169, 110, 0.12);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: var(--transition);
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--ink);
    overflow: hidden;
    padding-top: 72px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 1s ease;
}

.hero-video.ended {
    opacity: 0;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slideshow img.active {
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.45) 60%, rgba(26,26,26,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 80px 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-label::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeUp 0.8s 0.35s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 400;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.75;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.65s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-dark);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* ====== SECTIONS ====== */
section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--ink-muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ====== LATEST EPISODES ====== */
.latest {
    background: var(--white);
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.episode-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--stone-dark);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.episode-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}

.episode-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--stone);
}

.episode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.episode-card:hover .episode-img img {
    transform: scale(1.06);
}

.episode-play {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.episode-play:hover {
    background: var(--gold);
}

.episode-play:hover svg {
    fill: var(--white);
}

.episode-play svg {
    width: 18px;
    height: 18px;
    fill: var(--ink);
    margin-left: 2px;
}

.episode-province {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.episode-langs {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.85rem;
    line-height: 1;
    letter-spacing: 2px;
}

.episode-body {
    padding: 22px;
}

.episode-series {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.episode-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--ink);
}

.episode-excerpt {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.episode-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.episode-duration,
.episode-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ====== THEMES ====== */
.themes {
    background: var(--stone);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.theme-card {
    position: relative;
    padding: 36px 28px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.theme-card:hover::before {
    transform: scaleX(1);
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--stone-dark);
}

.theme-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    background: var(--stone);
}

.theme-card:nth-child(1) { --card-accent: var(--terracotta); }
.theme-card:nth-child(1) .theme-icon { background: #fdf0eb; }
.theme-card:nth-child(2) { --card-accent: var(--sea); }
.theme-card:nth-child(2) .theme-icon { background: #edf3f5; }
.theme-card:nth-child(3) { --card-accent: var(--gold-dark); }
.theme-card:nth-child(3) .theme-icon { background: #faf5ed; }
.theme-card:nth-child(4) { --card-accent: var(--olive); }
.theme-card:nth-child(4) .theme-icon { background: #f0f3ee; }

.theme-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.theme-desc {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.theme-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--card-accent, var(--gold-dark));
}

/* ====== MAP ====== */
.map-section {
    background: var(--white);
}

.map-section .container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.map-info {
    padding: 20px 0;
}

#map,
.map-container {
    height: 520px;
    border-radius: 12px;
    border: 1px solid var(--stone-dark);
    box-shadow: var(--shadow-md);
}

.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.map-filter-btn {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--stone-dark);
    background: var(--white);
    color: var(--ink-light);
    cursor: pointer;
    transition: var(--transition);
}

.map-filter-btn:hover,
.map-filter-btn.active {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(200, 169, 110, 0.08);
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ====== ABOUT ====== */
.about {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about .section-label {
    color: var(--gold-light);
}

.about .section-label::before {
    background: var(--gold-light);
}

.about .section-title {
    color: var(--white);
}

.about-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-top: 20px;
}

.about-text strong {
    color: var(--gold-light);
}

.about-credentials {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.credential svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.5;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-quote {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.45;
    padding: 32px;
    border-left: 3px solid var(--gold-dark);
}

.platforms {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.platform-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

/* ====== NEWSLETTER ====== */
.newsletter {
    background: linear-gradient(135deg, var(--stone) 0%, #f0ebe3 100%);
    text-align: center;
}

.newsletter .section-title {
    margin: 0 auto 12px;
}

.newsletter .section-subtitle {
    margin: 0 auto 36px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1.5px solid var(--stone-dark);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--gold);
}

.newsletter-input::placeholder {
    color: var(--ink-muted);
}

/* ====== FOOTER ====== */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.5);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

footer a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-istituzionale {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 600px;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== LANGUAGE TRANSITION ====== */
[data-i18n] {
    transition: opacity 0.25s ease;
}

.lang-switching [data-i18n] {
    opacity: 0;
}

/* ====== PROTO BANNER ====== */
.proto-banner {
    background: var(--gold-dark);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ====== LEAFLET ====== */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    font-family: var(--font-body) !important;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
    margin: 14px 18px !important;
}

.popup-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.popup-series {
    font-size: 0.72rem;
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.popup-province {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.popup-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
}

.popup-link:hover {
    text-decoration: underline;
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--ink-muted);
    padding: 20px 0;
    margin-top: 72px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb .sep {
    opacity: 0.4;
    font-size: 0.7em;
}

/* ====== EPISODE HERO (dark, image + map full-width) ====== */
.ep-hero {
    background: var(--ink);
    padding: 20px 0 0;
}

.ep-hero-header {
    margin-bottom: 16px;
}

.ep-hero-header .episode-series {
    display: block;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.ep-hero-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ep-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.ep-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Slideshow */
.ep-slideshow {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.ep-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ep-slideshow img.active {
    opacity: 1;
}

.ep-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(26, 26, 26, 0.45);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.ep-slide-btn:hover {
    background: rgba(26, 26, 26, 0.7);
}

.ep-slide-prev {
    left: 16px;
}

.ep-slide-next {
    right: 16px;
}

.ep-slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.ep-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.ep-slide-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.ep-hero-grid .map-container {
    min-height: 500px;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* ====== AUDIO PLAYER ====== */
.audio-section {
    padding: 40px 0 0;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ink);
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 760px;
    margin: 0 auto;
}

.ap-play {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.ap-play:hover {
    background: var(--gold-dark);
    transform: scale(1.06);
}

.ap-play svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.ap-track {
    flex: 1;
    min-width: 0;
}

.ap-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ap-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
    width: 0;
    transition: width 0.1s linear;
}

.ap-progress:hover .ap-bar {
    background: var(--gold-light);
}

.ap-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
}

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

.ap-vol-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.ap-vol-btn:hover {
    color: var(--gold);
}

.ap-vol-btn svg {
    width: 18px;
    height: 18px;
}

.ap-vol-range {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.ap-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}

.ap-vol-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .audio-player {
        padding: 12px 16px;
        gap: 12px;
    }
    .ap-play {
        width: 40px;
        height: 40px;
    }
    .ap-play svg {
        width: 16px;
        height: 16px;
    }
    .ap-vol-range {
        width: 50px;
    }
}

/* ====== EPISODE CONTENT ====== */
.ep-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px;
}

.ep-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-light);
    margin-bottom: 24px;
}

.ep-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    margin: 40px 0 16px;
}

/* ====== RELATED EPISODES ====== */
.related-section {
    background: var(--stone);
    padding: 80px 0;
}

.related-section .section-title {
    margin-bottom: 40px;
}

/* ====== AGGREGATE PAGE HERO ====== */
.agg-hero {
    position: relative;
    min-height: 500px;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
}

.agg-hero .section-label {
    justify-content: center;
}

.agg-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.agg-hero .agg-description,
.agg-hero .agg-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.agg-hero .section-subtitle {
    margin: 0 auto;
    max-width: 600px;
}

.agg-hero-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.agg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

.agg-hero-content {
    position: relative;
    z-index: 3;
    pointer-events: none;
    padding-top: 40px;
    padding-bottom: 40px;
}

.agg-hero-overlay,
.agg-hero-content {
    transition: opacity 0.4s ease;
}

.agg-hero:hover .agg-hero-overlay,
.agg-hero:hover .agg-hero-content {
    opacity: 0;
}

.agg-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.agg-stat {
    text-align: center;
}

.agg-stat strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.agg-stat span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ====== AGGREGATE HERO MAP ====== */
.agg-hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    z-index: 1;
}

/* ====== AGGREGATE GRID SECTION ====== */
.agg-grid-section {
    padding: 80px 0;
}

.agg-grid-section .episodes-grid {
    margin-top: 40px;
}

/* ====== FESTE DI TRADIZIONE ====== */
.ft-hero {
    padding: 140px 0 60px;
    background: var(--stone);
    text-align: center;
}

.ft-hero-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.ft-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.ft-hero-subtitle {
    font-size: 1.05rem;
    color: var(--ink-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.ft-controls-section {
    padding: 48px 0 0;
}

.ft-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ft-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ft-control label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

.ft-select,
.ft-input {
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 10px 16px;
    border: 1.5px solid var(--stone-dark);
    border-radius: 100px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: var(--transition);
    min-width: 200px;
}

.ft-select:focus,
.ft-input:focus {
    border-color: var(--gold);
}

.ft-reset-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 24px;
    border: 1.5px solid var(--stone-dark);
    border-radius: 100px;
    background: var(--white);
    color: var(--ink-muted);
    cursor: pointer;
    transition: var(--transition);
}

.ft-reset-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.ft-map {
    height: 400px;
    margin-bottom: 24px;
}

.ft-stats {
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.ft-cards-section {
    padding: 48px 0 100px;
}

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

.ft-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--stone-dark);
    overflow: hidden;
    transition: var(--transition);
}

.ft-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}

.ft-card-header {
    background: var(--ink);
    color: var(--white);
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ft-card-city {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.ft-card-month {
    background: rgba(200, 169, 110, 0.25);
    color: var(--gold-light);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

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

.ft-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
}

.ft-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.ft-card-desc {
    font-size: 0.85rem;
    color: var(--ink-light);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ft-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ft-card {
    transition: box-shadow var(--transition), transform var(--transition);
}

/* Feste Modal */
.ft-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ft-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.ft-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
}

.ft-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.ft-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--ink-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.ft-modal-close:hover {
    color: var(--ink);
}

.ft-modal-header {
    margin-bottom: 16px;
}

.ft-modal-month {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ft-modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 16px;
}

.ft-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ft-modal-desc {
    font-size: 0.95rem;
    color: var(--ink-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.ft-modal-map {
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

.ft-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: var(--stone);
    border-radius: 12px;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* ====== CHI SIAMO / ABOUT ====== */

.about-hero {
    padding: 80px 0 48px;
    background: var(--ink);
    text-align: center;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 24px;
}

.about-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.75;
}

.about-team {
    padding: 80px 0;
    background: var(--stone);
}

.about-team-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--ink);
    text-align: center;
    margin-bottom: 48px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.team-org {
    font-weight: 400;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--ink-light);
    line-height: 1.7;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ft-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-section .container {
        grid-template-columns: 1fr;
    }

    #map,
    .map-container {
        height: 400px;
    }

    .about .container {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 28px;
        flex-wrap: wrap;
    }

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

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

    .ft-cards-grid {
        grid-template-columns: 1fr;
    }

    .ft-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .ft-select,
    .ft-input {
        min-width: 0;
        width: 100%;
    }

    .ft-map {
        height: 280px;
    }

    section {
        padding: 64px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .ep-hero-grid {
        grid-template-columns: 1fr;
    }

    .ep-slideshow {
        min-height: 260px;
    }

    .ep-hero-grid .map-container {
        min-height: 280px;
    }

    .agg-hero {
        min-height: 360px;
    }

    .agg-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .about-hero h1 {
        font-size: 2.2rem;
    }

    .about-intro {
        font-size: 1rem;
    }

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

    .team-card {
        padding: 24px;
    }
}
