/**
 * Michela Franceschina Portfolio - Homepage
 *
 * Sezioni homepage non incluse nel critical CSS: chi-sono (about preview),
 * musica (featured + grid secondaria), streaming badges, equalizer separator,
 * wave separator, gallery archive card (usata in homepage).
 * Caricato condizionalmente solo su home.
 *
 * @package Michela_Franceschina
 * @since 1.9.1
 */

/* ====================
   MUSIC FEATURED + GRID (Homepage)
   ==================== */

.music-featured {
    margin-bottom: var(--space-2xl);
}

.music-featured-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.music-featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-featured-card:hover .featured-image-overlay {
    opacity: 1;
}

.featured-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    background: var(--color-surface);
}

.featured-badge {
    margin-bottom: var(--space-xs);
}

.featured-title {
    font-family: var(--font-primary);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
}

.featured-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--color-primary);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.featured-excerpt {
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
}

/* Secondary music grid — 4 columns */
.music-grid-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.music-card-compact {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
}

.music-card-compact .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.music-card-compact .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.music-card-compact:hover .card-image img {
    transform: scale(1.08);
}

.music-card-compact .card-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card-compact:hover .card-image-overlay {
    opacity: 1;
}

.music-card-compact .card-body {
    padding: var(--space-lg);
}

.music-card-compact .card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.music-card-compact .card-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.music-card-compact .card-title a:hover {
    color: var(--color-primary);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-layout {
        grid-template-columns: 1fr;
    }

    .featured-image {
        aspect-ratio: 16 / 9;
    }

    .featured-content {
        padding: var(--space-xl);
    }

    .featured-title {
        font-size: var(--fs-2xl);
    }

    .music-grid-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .music-grid-secondary {
        grid-template-columns: 1fr;
    }
}


/* ====================
   WAVE SEPARATOR (Footer)
   ==================== */

.wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-bottom: -1px;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave-separator {
    --wave-color: var(--color-bg-dark);
}

.wave-separator path {
    fill: var(--wave-color);
}

/* ====================
   GALLERY ARCHIVE CARD
   ==================== */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    font-weight: var(--fw-medium);
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.filter-count {
    opacity: 0.7;
    font-size: var(--fs-sm);
}

/* Gallery archive grid — uses .gallery-card editorial style from components.css.
   Fixed column count so a single card stays in its 1/3 cell instead of stretching
   across the full row. Layout stays consistent for any post count (1 → 100). */
.galleries-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2xl);
    justify-items: stretch;
}

.no-results {
    padding: var(--space-3xl) 0;
    color: var(--color-text-light);
}

.no-results svg {
    margin-bottom: var(--space-lg);
}

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

@media (max-width: 640px) {
    .galleries-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================
   SECTION COLOR MODIFIERS
   ==================== */

.section--dark {
    background: var(--color-bg-dark);
}

.section--dark .section-title {
    color: #ffffff;
}

.section--dark .section-title::after {
    background: var(--color-accent);
}

.section--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

/* About section on dark */
.section--dark .about-text p,
.section--dark .about-text {
    color: rgba(255, 255, 255, 0.75);
}

.section--dark .btn-text {
    color: var(--color-accent);
}

.section--dark .btn-text:hover {
    color: var(--color-accent-light);
}

/* Video section — warm-white override (was dark; explicit literals per design) */
.video-section .section-title {
    color: #1a1a1a;
}

.video-section .section-subtitle {
    color: #4a4a4a;
}

/* Testimonials on dark */
.section--dark .testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.section--dark .testimonial-quote p {
    color: rgba(255, 255, 255, 0.8);
}

.section--dark .quote-icon {
    color: var(--color-accent);
    opacity: 1;
}

.section--dark .testimonial-name {
    color: #ffffff;
}

.section--dark .testimonial-role {
    color: rgba(255, 255, 255, 0.5);
}

/* Video / generic cards on dark */
.section--dark .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
}

.section--dark .card:hover,
.section--dark .card-hover-lift:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--color-accent-rgb), 0.2);
}

.section--dark .card-title,
.section--dark .card-title a {
    color: #ffffff;
}

.section--dark .card-title a:hover {
    color: var(--color-accent-light);
}

.section--dark .card-excerpt,
.section--dark .card-meta {
    color: rgba(255, 255, 255, 0.5);
}

.section--dark .badge-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.section--dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.section--dark .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.section--dark .btn-outline-accent {
    border-color: rgba(var(--color-accent-rgb), 0.4);
    color: var(--color-accent);
}

.section--dark .btn-outline-accent:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.section--dark .section-cta .no-events {
    color: rgba(255, 255, 255, 0.5);
}

/* Coral tint background */
.section--warm {
    background: rgba(var(--color-primary-rgb), 0.06);
}

/* Gradient dark (newsletter CTA) */
.section--gradient {
    background: var(--gradient-dark);
}

.section--gradient .newsletter-title {
    color: #ffffff;
}

.section--gradient .newsletter-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section--gradient .newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.section--gradient .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.section--gradient .newsletter-privacy {
    color: rgba(255, 255, 255, 0.45);
}

.section--gradient .newsletter-consent {
    color: rgba(255, 255, 255, 0.7);
}

.section--gradient .newsletter-consent a {
    color: rgba(255, 255, 255, 0.9);
}

/* ====================
   NEWSLETTER SECTION — layout fix
   ==================== */

.newsletter-section {
    padding-top: 96px;
}

.newsletter-section .newsletter-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section .newsletter-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.newsletter-section .newsletter-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary, #ff8c70);
    border-radius: 2px;
}

.newsletter-section .newsletter-title .icon {
    margin-right: 12px;
    color: var(--color-primary, #ff8c70);
}

.newsletter-section .newsletter-subtitle {
    text-align: center;
    margin: 24px auto 32px;
    max-width: 520px;
    line-height: 1.7;
}

.newsletter-section .newsletter-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 520px;
}

.newsletter-section .newsletter-input {
    flex: 1 1 280px;
    min-width: 240px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    height: auto;
    max-height: 56px;
}

.newsletter-section .newsletter-submit {
    padding: 14px 28px;
    white-space: nowrap;
}

.newsletter-section .newsletter-status {
    text-align: center;
    margin-top: 16px;
}

.newsletter-section .newsletter-privacy {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

/* Consenso GDPR checkbox (homepage newsletter).
   Whole label clickable; padding gives ≥44px tap target across the row. */
.newsletter-section .newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: 16px;
    padding: var(--space-sm);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.newsletter-section .newsletter-consent:hover,
.newsletter-section .newsletter-consent:focus-within {
    background: rgba(255, 255, 255, 0.06);
}

.newsletter-section .newsletter-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    accent-color: var(--coral-deep, #c0715a);
    cursor: pointer;
}

.newsletter-section .newsletter-consent a {
    text-decoration: underline;
}

.newsletter-section .newsletter-status {
    margin-top: 12px;
    font-size: .9rem;
    min-height: 1.2em;
}

@media (max-width: 600px) {
    .newsletter-section {
        padding-top: 64px;
    }

    .newsletter-section .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-section .newsletter-submit {
        width: 100%;
    }
}

/* ====================
   HOMEPAGE CONTACT SECTION (redesign)
   ==================== */

.hp-contact-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* v3.3 — colonna singola centrata: rimossa l'info-card doppione, resta solo
   il CTA. Cap a 620px così non si stira e resta un blocco di conversione
   compatto (Refactoring UI: "Don't make everything full width"). */
.hp-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
    gap: var(--space-2xl);
    align-items: center;
}

.hp-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.hp-info-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hp-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.hp-info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(var(--color-accent-rgb), 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.hp-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hp-info-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-accent);
}

.hp-info-value {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hp-info-value:hover {
    color: #ffffff;
}

/* Contact card social inherits unified treatment from social.css.
   No overrides needed — same design system as header / footer. */

.hp-social-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-md);
}

.hp-contact-full-link {
    width: 100%;
    justify-content: center;
}

.hp-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

/* CTA card — redirect to contact page */
.hp-cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-cta-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-3xl) var(--space-2xl);
}

.hp-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(var(--color-accent-rgb), 0.12);
    border: 1px solid rgba(var(--color-accent-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-accent);
}

.hp-cta-title {
    color: #ffffff;
    font-size: var(--fs-2xl);
    margin: 0;
}

.hp-cta-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    max-width: 32ch;
    margin: 0;
}

.hp-cta-btn {
    min-width: 200px;
}

@media (max-width: 767px) {
    .hp-contact-grid {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    .hp-info-card,
    .hp-form-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    .hp-info-value {
        font-size: var(--fs-sm);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .hp-cta-btn {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
}

.section:has(> .equalizer-separator:first-child) {
    padding-top: 0;
}

.hero-section + section,
.hero-section + .section {
    margin-top: 0;
}

/* Symmetric padding inherited from layouts.css .about-preview-section
   (padding: var(--section-padding-y) 0). Previous padding-top override
   broke top/bottom balance — kept it removed for visual rhythm. */

/* ====================
   WAVE DIVIDER
   ==================== */

.wave-divider {
    line-height: 0;
    overflow: hidden;
    display: block;
    width: 100%;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

/* ====================
   COLLABORAZIONI SECTION
   ==================== */

.collaborations-section {
    padding: var(--space-3xl) 0;
}

.collabs-label {
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.collabs-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xl) var(--space-3xl);
    justify-content: center;
    align-items: center;
}

.collab-logo-item img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.35s ease;
}

.collab-logo-item:hover img {
    filter: grayscale(0) opacity(1);
}

@media (hover: none) {
    .collab-logo-item img {
        filter: grayscale(0) opacity(0.75);
    }
}

/* Rotating quotes */
.collab-quotes {
    position: relative;
    margin-top: var(--space-3xl);
    min-height: 5.5em;
    text-align: center;
}

.collab-quote {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    margin: 0;
    padding: 0 var(--space-2xl);
}

.collab-quote.is-active {
    opacity: 1;
    pointer-events: auto;
}

.collab-quote p {
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--color-text-secondary);
    margin: 0 0 var(--space-sm);
}

.collab-quote cite {
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.collab-quote-year {
    color: var(--color-accent-accessible);
}

@media (prefers-reduced-motion: reduce) {
    .collab-quote {
        position: static;
        opacity: 1;
        display: none;
        transition: none;
    }
    .collab-quote.is-active {
        display: flex;
    }
}

/* ====================
   VIDEO GRID (Homepage)
   ==================== */

.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.video-grid--single {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================
   SERVICES GRID — "Come lavorare con me"
   ==================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    row-gap: 20px;  /* 10px top + 10px bottom of separation between rows */
    margin-top: var(--space-2xl);
    align-items: stretch;  /* Cards stretch to tallest in row → equal heights */
}

.services-grid .service-card {
    margin-block: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Service icon circle — unified coral across all 4 cards (overrides any
   --accent/--primary/--secondary PHP modifier the markup still emits). */
.services-grid .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--coral);
    color: #ffffff;
    fill: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    flex-shrink: 0;
}

.services-grid .service-icon .icon {
    --icon-size: 1.5rem;
    color: inherit;
}

/* Title: clamp to 2 lines, reserve 2-line space so descriptions align across cards */
.services-grid .service-title {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.2;
    min-height: 2.4em;  /* 2 lines × line-height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

/* Description fills remaining vertical space — pushes CTA to bottom */
.services-grid .service-desc {
    flex: 1 1 auto;
    margin-bottom: var(--space-lg);
}

/* CTA pinned at bottom of every card, regardless of content height above */
.services-grid .service-cta {
    margin-top: auto;
    align-self: flex-start;
}

/* Tablet & medium desktop: 2×2 evita orfano quando services sono 4 in grid auto-fit a 3-col */
@media (min-width: 641px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .service-title {
        min-height: 0;
    }
}


/* ==========================================================================
   HOMEPAGE AUDIO PLAYER (Customizer-driven Spotify/SoundCloud embed)
   ========================================================================== */

.audio-player-section {
    background: var(--color-bg-light);
}

.audio-player-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.audio-player-embed {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.audio-player-embed iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Placeholder mostrato finché Iubenda sopprime l'iframe (attesa consenso
   Marketing): copre l'area vuota con una spiegazione e un link che funziona
   sempre. Sparisce quando Iubenda attiva l'iframe (_iub_cs_activate-activated). */
.audio-embed-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    text-align: center;
    background: var(--color-bg-light, var(--ivory-soft));
    border: 1px solid var(--color-divider, var(--divider));
    border-radius: inherit;
}

.audio-embed-placeholder__icon {
    color: var(--color-accent-accessible);
}

.audio-embed-placeholder__text {
    max-width: 42ch;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}

/* Iubenda ha attivato l'iframe → il player carica, il placeholder sparisce. */
.audio-player-embed:has(iframe._iub_cs_activate-activated) .audio-embed-placeholder {
    display: none;
}

/* ============================================================================
   DESKTOP AUDIT REFINEMENT — 2026-05
   Targeted polish based on 1440px viewport audit.
   ============================================================================ */

/* Gallerie homepage: bound column max-width so 2 cards don't stretch into
   huge tiles on desktop. auto-fit fills row, max 380px keeps proportion. */
.section-galleries .galleries-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
}

/* About preview grid: center text column vertically against polaroid image
   so empty space below CTA "Leggi di più" doesn't create visual imbalance. */
.about-preview-section .about-grid,
.about-preview-section .about-grid--polaroid {
    align-items: center;
}

/* Music featured CTA: button shouldn't stretch full column width.
   Limit to content + padding so it reads as a button, not a bar. */
.music-featured-card .featured-content .btn-primary {
    align-self: flex-start;
    width: auto;
    max-width: 320px;
}

/* Outline-accent CTA (Tutti i Video, Vedi Tutte le Gallerie, Servizi):
   raise min-height to 44px so secondary CTAs feel deliberate. */
.btn.btn-outline-accent {
    min-height: 44px;
    padding-block: var(--space-sm);
}

/* "Leggi di più →" About preview CTA: same treatment as outline buttons. */
.about-section .btn-text,
.about-preview-section .btn-text {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Video card duration badge: stronger contrast on dark section background. */
.video-section .video-card .video-duration {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Section-cta margin trim: reduce empty space between section close and the
   following section's opening separator. Was visually creating ~500px gaps. */
.music-section .section-cta,
.video-section .section-cta,
.section-galleries .section-cta {
    margin-top: var(--space-xl);
}

/* Reduce music→ascolta dead space: audio-player-section sits right after
   music section CTA. Trim padding-top so the divider doesn't get isolated. */
.music-section + .audio-player-section,
.audio-player-section {
    padding-top: var(--space-2xl);
}

/* Equalizer separator: section-specific icons replace generic 7 bars to
   avoid visual repetition. Bars hidden, FA glyph injected via ::before.
   Uniform 48×48 container box equalizes optical weight across glyphs with
   different stroke densities (camera vs paper-plane vs music). */
.equalizer-separator { position: relative; }

/* Container fully transparent + pushed BELOW the section boundary so the
   icon lives entirely inside the new section bg. :first-child is required
   to beat decoratives.css's `.section--dark > .equalizer-separator:first-child`
   (specificity 0,3,0) that paints the container with the previous section's
   tone. padding-block tweak removes the negative-feeling straddle. */
.events-section > .equalizer-separator:first-child,
.music-section > .equalizer-separator:first-child,
.audio-player-section > .equalizer-separator:first-child,
.video-section > .equalizer-separator:first-child,
.section-galleries > .equalizer-separator:first-child,
.services-section > .equalizer-separator:first-child,
.newsletter-section > .equalizer-separator:first-child,
.contact-section > .equalizer-separator:first-child {
    background: transparent;
    padding-block: var(--space-3xl) var(--space-md);  /* ~24px stacco above (icon clearly inside new section, not glued to boundary), snug to title below */
}

.events-section .equalizer-separator .eq-bar,
.music-section .equalizer-separator .eq-bar,
.audio-player-section .equalizer-separator .eq-bar,
.video-section .equalizer-separator .eq-bar,
.section-galleries .equalizer-separator .eq-bar,
.services-section .equalizer-separator .eq-bar,
.newsletter-section .equalizer-separator .eq-bar,
.contact-section .equalizer-separator .eq-bar {
    display: none;
}

/* ::before resta l'alone tondo (48×48, background, border-radius). ::after
   diventa il glifo: una maschera SVG in data-URI al posto del font-icona.
   <use href="sprite.svg#id"> non e utilizzabile dentro mask-image (i fragment
   su file esterni non sono affidabili in questo contesto), ma il data-URI si
   — e mantiene l'ereditarieta del colore perche il colore lo mette
   background-color, non il fill dell'SVG. Due box distinti (alone + glifo)
   perche un solo pseudo-elemento non puo avere sia lo sfondo circolare sia
   una maschera di dimensione diversa senza che l'una schiacci l'altra. */
.events-section .equalizer-separator::before,
.music-section .equalizer-separator::before,
.audio-player-section .equalizer-separator::before,
.video-section .equalizer-separator::before,
.section-galleries .equalizer-separator::before,
.services-section .equalizer-separator::before,
.newsletter-section .equalizer-separator::before,
.contact-section .equalizer-separator::before {
    content: "";
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in oklab, var(--coral) 12%, transparent);
}

/* Dark sections: invert halo bg for visibility against ink background */
.contact-section .equalizer-separator::before,
.newsletter-section .equalizer-separator::before {
    background: rgba(255, 255, 255, 0.08);
}

.events-section .equalizer-separator::after,
.music-section .equalizer-separator::after,
.audio-player-section .equalizer-separator::after,
.video-section .equalizer-separator::after,
.section-galleries .equalizer-separator::after,
.services-section .equalizer-separator::after,
.newsletter-section .equalizer-separator::after,
.contact-section .equalizer-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;   /* uniform glyph size — container handles presence */
    height: 20px;
    background-color: var(--coral);
    mask-image: var(--sep-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: var(--sep-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.events-section .equalizer-separator       { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 4h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm0 5v10h14V9H5z"/><path d="M7 2a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1zm10 0a1 1 0 0 1 1 1v3a1 1 0 0 1-2 0V3a1 1 0 0 1 1-1z"/></svg>'); }  /* calendar */
.music-section .equalizer-separator        { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 17a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M9 18a1 1 0 0 1-1-1V6a1 1 0 0 1 .76-.97l9-2.25A1 1 0 0 1 19 3.75V7a1 1 0 0 1-2 0V5.03l-7 1.75V17a1 1 0 0 1-1 1z"/></svg>'); }  /* music-note */
.audio-player-section .equalizer-separator { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22 17a1 1 0 0 1-2 0v-5a8 8 0 1 0-16 0v5a1 1 0 0 1-2 0v-5a10 10 0 1 1 20 0v5z"/><path d="M7 12a2 2 0 0 1 2 2v6a2 2 0 1 1-4 0v-6c0-1.1.9-2 2-2zm10 0a2 2 0 0 1 2 2v6a2 2 0 1 1-4 0v-6c0-1.1.9-2 2-2z"/></svg>'); }  /* headphones */
.video-section .equalizer-separator        { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.59 12l6.7-6.7A1 1 0 0 1 22 6v12a1 1 0 0 1-1.7.7L13.58 12z"/><rect width="14" height="14" x="2" y="5" rx="2"/></svg>'); }  /* videocam */
.section-galleries .equalizer-separator    { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.59 6l2.7-2.7A1 1 0 0 1 10 3h4a1 1 0 0 1 .7.3L17.42 6H20a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h2.59zM19 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-7 8a5 5 0 1 0 0-10 5 5 0 0 0 0 10z"/><path d="M12 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/></svg>'); }  /* camera */
.services-section .equalizer-separator     { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 14.92V16a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1.08c2.83-.24 5.53-.96 8-2.1V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.18a23.85 23.85 0 0 0 8 2.1z"/><path d="M14 12.92V12a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v.92a23.85 23.85 0 0 1-8-2.1V8c0-1.1.9-2 2-2h3V5a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v1h3a2 2 0 0 1 2 2v2.82a23.85 23.85 0 0 1-8 2.1zM15 6V5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v1h6z"/></svg>'); }  /* work */
.newsletter-section .equalizer-separator   { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2zm2 3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H7z"/><path d="M7 14h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1zm7-8h3a1 1 0 0 1 0 2h-3a1 1 0 0 1 0-2zm0 4h3a1 1 0 0 1 0 2h-3a1 1 0 0 1 0-2z"/></svg>'); }  /* news */
.contact-section .equalizer-separator      { --sep-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g transform="translate(1 2)"><path d="M12 1v15.97l-1 1.12-8.6 1.82a1 1 0 0 1-1.3-1.36l9-18A.99.99 0 0 1 11 0l1 1z"/><path d="M11 0c.36 0 .71.18.9.55l9 18a1 1 0 0 1-1.3 1.36L11 18.1V0z"/></g></svg>'); }  /* send */

/* Placeholder ritratto — estratto dagli inline style di section-chi-sono.php */
.placeholder-image--portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: var(--color-primary);
}

.placeholder-image--portrait .icon {
    --icon-size: 8rem;
    color: var(--color-light);
    opacity: 0.3;
}
