/* FILE: style.css (Versione con Intro Box) */

:root {
    --primary-color: #1a56cc;
    --text-color: #374151;
    --secondary-text: #6b7280;
    --light-text: #9ca3af;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12);
    --border-radius-lg: 1rem;
    --border-radius-md: 0.5rem;
    --transition-speed: 0.2s;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 100px;
}

/* --- HEADER STICKY --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}
.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    text-align: center;
}
.podcast-title {
    font-family: 'Amatic SC', sans-serif;
    font-weight: 700;
    font-size: 3.5em;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
    transition: font-size var(--transition-speed) ease;
}

/* --- LAYOUT PRINCIPALE --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
}

/* --- NUOVO INTRO BOX --- */
.intro-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.intro-cover {
    flex: 0 0 180px; /* Larghezza fissa per la cover */
    height: 180px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.intro-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.intro-text-content {
    flex: 1;
    text-align: center;
}
.intro-text {
    font-size: 1.1em;
    color: var(--secondary-text);
    margin: 0;
}

/* --- LISTA EPISODI E CARD (invariato) --- */
.episodes-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.episode {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
    align-items: flex-start;
}
.episode:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.episode-image {
    flex: 0 0 120px;
    height: 120px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
}
.episode:hover .episode-image img {
    transform: scale(1.05);
}
.episode-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}
.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.episode-date {
    font-size: 0.85em;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 500;
}
.episode-actions {
    display: flex;
    gap: 0.8rem;
}
.episode-actions a {
    color: var(--light-text);
    font-size: 1.1em;
    transition: color var(--transition-speed) ease;
}
.episode-actions a:hover {
    color: var(--primary-color);
}
.episode-content h2 {
    margin: 0 0 0.3rem 0;
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 600;
}
.episode-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1em;
    color: var(--secondary-text);
    font-weight: 400;
}
.episode-excerpt {
    font-size: 0.95em;
    line-height: 1.7;
    flex-grow: 1; 
}
.spotify-embed {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 1rem;
}

/* --- OTTIMIZZAZIONE MOBILE --- */
@media (max-width: 680px) {
    body { padding-top: 85px; }
    .header-content { padding: 0.5rem 1rem; }
    .podcast-title { font-size: 2.2em; line-height: 1.2; }
    .container { padding: 0 1rem 1.5rem 1rem; }
    
    .intro-section {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    .intro-cover {
        flex-basis: auto;
        width: 150px;
        height: 150px;
    }
    .intro-text { font-size: 1em; }

    .episode {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    .episode-image {
        width: 100%;
        height: 180px;
        flex: none;
    }
    .episode-content { min-height: 0; }
}