/**
 * CSS Principale: Tema Parrocchia San Pio X (Mantova)
 * Design moderno, caldo, materico (cotto/terracotta, pergamena, pietra, antracite)
 */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-parchment);
    color: var(--color-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-terracotta-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.25;
    margin-top: 0;
}

/* Container */
.pspx-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.pspx-container-narrow {
    max-width: var(--container-narrow);
}

/* ==========================================================================
   TOPBAR & HEADER
   ========================================================================== */
.pspx-topbar {
    background-color: var(--color-dark);
    color: #e7e5e4;
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pspx-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pspx-topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pspx-top-link {
    color: #d6d3d1;
    font-weight: 500;
}

.pspx-top-link:hover {
    color: #ffffff;
}

.pspx-separator {
    color: #78716c;
}

.pspx-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(251, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.pspx-header.is-scrolled {
    background-color: rgba(251, 249, 245, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pspx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.pspx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-dark);
}

.pspx-brand:hover {
    color: var(--color-terracotta);
}

.pspx-brand-mark {
    color: var(--color-terracotta);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.pspx-brand:hover .pspx-brand-mark {
    transform: scale(1.06);
    filter: drop-shadow(0 2px 6px var(--color-terracotta-glow));
}

.pspx-brand-text {
    display: flex;
    flex-direction: column;
}

.pspx-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pspx-brand-sub {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    font-weight: 600;
}

/* Nav Desktop */
.pspx-nav-desktop {
    display: flex;
    align-items: center;
}

.pspx-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pspx-nav-list a {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    position: relative;
    padding: 8px 0;
}

.pspx-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width 0.3s ease;
}

.pspx-nav-list a:hover,
.pspx-nav-list .current-menu-item > a {
    color: var(--color-terracotta);
}

.pspx-nav-list a:hover::after,
.pspx-nav-list .current-menu-item > a::after {
    width: 100%;
}

/* Header Actions & Mobile */
.pspx-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pspx-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.pspx-hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   PULSANTI & BADGE
   ========================================================================== */
.pspx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.pspx-btn-sm {
    padding: 9px 18px;
    font-size: 0.8438rem;
}

.pspx-btn-lg {
    padding: 15px 32px;
    font-size: 1rem;
}

.pspx-btn-block {
    width: 100%;
}

.pspx-btn-terracotta {
    background-color: var(--color-terracotta);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--color-terracotta-glow);
}

.pspx-btn-terracotta:hover {
    background-color: var(--color-terracotta-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.pspx-btn-glass {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.pspx-btn-glass:hover {
    background-color: #ffffff;
    color: var(--color-dark);
    transform: translateY(-2px);
}

.pspx-btn-outline {
    background: transparent;
    color: var(--color-terracotta);
    border: 1.5px solid var(--color-terracotta);
}

.pspx-btn-outline:hover {
    background-color: var(--color-terracotta);
    color: #ffffff;
    transform: translateY(-1px);
}

.pspx-btn-white {
    background-color: #ffffff;
    color: var(--color-terracotta);
}

.pspx-btn-white:hover {
    background-color: var(--color-stone);
    color: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

.pspx-btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid #ffffff;
}

.pspx-btn-outline-white:hover {
    background: #ffffff;
    color: var(--color-dark);
}

/* Badges */
.pspx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.pspx-badge-pill {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
}

.pspx-badge-terracotta {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
}

.pspx-badge-white {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.pspx-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4ade80;
    display: inline-block;
}

.pspx-kicker {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-terracotta);
    margin-bottom: 8px;
}

/* ==========================================================================
   1. HERO SECTION (100% Full-Width)
   ========================================================================== */
.pspx-hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
    overflow: hidden;
}

.pspx-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transform: scale(1.05);
    transition: transform 1.2s ease-out;
}

.pspx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.6) 0%, rgba(28, 25, 23, 0.82) 100%);
}

.pspx-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.pspx-hero-title {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 20px 0;
}

.pspx-text-accent {
    color: #f7b79a;
}

.pspx-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.92;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 35px auto;
    color: #e7e5e4;
}

.pspx-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pspx-scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.pspx-scroll-indicator:hover {
    opacity: 1;
}

.pspx-mouse-wheel {
    width: 24px;
    height: 38px;
    border: 2px solid #ffffff;
    border-radius: 12px;
    display: block;
    position: relative;
}

.pspx-mouse-wheel::after {
    content: '';
    width: 4px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: pspxWheel 1.5s infinite;
}

@keyframes pspxWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ==========================================================================
   2. QUICK BAR MESSE A SBALZO
   ========================================================================== */
.pspx-quick-messe-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 50px;
}

.pspx-messe-card-wrap {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 30px 36px;
}

.pspx-messe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.pspx-messe-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.pspx-messe-status {
    font-size: 0.8438rem;
    color: #15803d;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0fdf4;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.pspx-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pspxPulse 1.8s infinite;
}

@keyframes pspxPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pspx-messe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pspx-messe-box {
    background: var(--color-stone);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--color-border-subtle);
    transition: var(--transition-smooth);
}

.pspx-messe-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.pspx-messe-box-highlight {
    background-color: var(--color-terracotta-light);
    border-color: rgba(184, 74, 42, 0.25);
}

.pspx-messe-type {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.pspx-messe-time {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.pspx-messe-box-highlight .pspx-messe-time {
    color: var(--color-terracotta);
}

.pspx-messe-note {
    display: block;
    font-size: 0.7812rem;
    color: var(--color-muted);
}

/* ==========================================================================
   SEZIONI GENERALI
   ========================================================================== */
.pspx-section {
    padding: 85px 0;
}

.pspx-section-header {
    margin-bottom: 50px;
}

.pspx-section-header.text-center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pspx-section-header.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pspx-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.pspx-section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   3. SEZIONE COMUNITÀ (Layout Asimmetrico Nobile)
   ========================================================================== */
.pspx-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pspx-media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 4px solid #ffffff;
}

.pspx-media-frame img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.6s ease;
}

.pspx-media-frame:hover img {
    transform: scale(1.03);
}

.pspx-media-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-dark);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.pspx-media-badge strong {
    font-size: 1.375rem;
    color: var(--color-terracotta);
    font-family: var(--font-heading);
}

.pspx-media-badge span {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d6d3d1;
}

.pspx-lead-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 18px;
    line-height: 1.6;
}

.pspx-body-text {
    color: var(--color-muted);
    font-size: 0.9375rem;
    margin-bottom: 25px;
}

.pspx-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.pspx-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pspx-feature-item h4 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    font-weight: 700;
}

.pspx-feature-item p {
    margin: 0;
    font-size: 0.8438rem;
    color: var(--color-muted);
}

/* ==========================================================================
   4. BANNER ORATORIO (Beigiolino Caldo / Pietra Materica)
   ========================================================================== */
.pspx-oratorio-banner-section {
    background-color: var(--color-stone);
    color: var(--color-dark);
    padding: 90px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.pspx-oratorio-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(184, 74, 42, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.pspx-oratorio-banner-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.pspx-oratorio-title {
    font-size: clamp(1.875rem, 4.5vw, 2.875rem);
    color: var(--color-dark);
    font-weight: 800;
    margin: 18px 0;
}

.pspx-oratorio-desc {
    font-size: 1.0938rem;
    color: var(--color-muted);
    margin-bottom: 35px;
    line-height: 1.65;
}

.pspx-oratorio-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. CARDS GRID (Attività & Pilastri)
   ========================================================================== */
.pspx-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pspx-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.pspx-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-terracotta-glow);
}

.pspx-card-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.pspx-card:hover .pspx-card-media img {
    transform: scale(1.05);
}

.pspx-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(28, 25, 23, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.pspx-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pspx-card-title {
    font-size: 1.1875rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pspx-card-text {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.pspx-card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-terracotta);
}

.pspx-card-link:hover {
    color: var(--color-terracotta-dark);
    text-decoration: underline;
}

/* ==========================================================================
   6. NEWS GRID
   ========================================================================== */
.pspx-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pspx-news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.pspx-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-terracotta);
}

.pspx-news-date {
    background-color: var(--color-stone);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
    border: 1px solid var(--color-border-subtle);
}

.pspx-news-day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-terracotta);
    line-height: 1;
}

.pspx-news-month {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 3px;
}

.pspx-news-content {
    flex: 1;
}

.pspx-news-title {
    margin: 0 0 8px 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.pspx-news-title a {
    color: var(--color-dark);
}

.pspx-news-title a:hover {
    color: var(--color-terracotta);
}

.pspx-news-excerpt {
    font-size: 0.8438rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.pspx-news-readmore {
    font-size: 0.7812rem;
    font-weight: 700;
    color: var(--color-terracotta);
}

/* ==========================================================================
   PAGINE INTERNE (Header di pagina con sfondo fotografico)
   ========================================================================== */
.pspx-page-header {
    position: relative;
    padding: 100px 0 75px 0;
    text-align: center;
    color: #ffffff;
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.pspx-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.72) 0%, rgba(28, 25, 23, 0.88) 100%);
    z-index: 1;
}

.pspx-page-header .pspx-container {
    position: relative;
    z-index: 2;
}

.pspx-page-header .pspx-badge {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    margin-bottom: 12px;
}

.pspx-page-title {
    font-size: clamp(2.125rem, 5vw, 3.375rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 14px 0 12px 0;
    color: #ffffff;
}

.pspx-page-subtitle {
    font-size: 1.125rem;
    color: #e7e5e4;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
    opacity: 0.95;
}

.pspx-page-content-wrap {
    padding: 60px 0 90px 0;
}

.pspx-article-body {
    font-size: 1.0312rem;
    line-height: 1.75;
    color: #334155;
}

.pspx-article-body p {
    margin-bottom: 22px;
}

/* ==========================================================================
   PAGINA CONTATTI
   ========================================================================== */
.pspx-contact-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-soft);
}

.pspx-contact-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pspx-contact-icon {
    font-size: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pspx-contact-row strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-dark);
}

.pspx-contact-row p {
    margin: 2px 0 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.pspx-form-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-card);
}

.pspx-field label {
    display: block;
    font-size: 0.8438rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #334155;
}

.pspx-field input,
.pspx-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d6d3d1;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    background: #ffffff;
    color: var(--color-dark);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.pspx-field input:focus,
.pspx-field textarea:focus {
    border-color: var(--color-terracotta);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-terracotta-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.pspx-footer {
    background-color: var(--color-dark-surface);
    color: #d6d3d1;
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pspx-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
    gap: 45px;
    margin-bottom: 50px;
}

.pspx-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.pspx-footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.pspx-footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #a8a29e;
    margin-bottom: 18px;
}

.pspx-diocesi-badge {
    font-size: 0.7188rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-terracotta);
}

.pspx-footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.pspx-footer-messe-list,
.pspx-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pspx-footer-messe-list li {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.pspx-messe-day {
    font-size: 0.7812rem;
    color: #a8a29e;
    text-transform: uppercase;
    font-weight: 600;
}

.pspx-messe-hour {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.pspx-footer-links li {
    margin-bottom: 10px;
}

.pspx-footer-links a {
    color: #d6d3d1;
    font-size: 0.875rem;
}

.pspx-footer-links a:hover {
    color: var(--color-terracotta);
    padding-left: 4px;
}

.pspx-footer-contact-item {
    font-size: 0.875rem;
    color: #a8a29e;
    margin-bottom: 14px;
    line-height: 1.5;
}

.pspx-footer-contact-item strong {
    color: #ffffff;
}

.pspx-footer-contact-item a {
    color: #d6d3d1;
}

.pspx-footer-contact-item a:hover {
    color: var(--color-terracotta);
}

.pspx-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #78716c;
}

.pspx-footer-bottom-links a {
    color: #a8a29e;
}

.pspx-footer-bottom-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   MENU MOBILE OVERLAY
   ========================================================================== */
.pspx-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-dark-surface);
    z-index: 999;
    display: none;
    padding: 30px 24px;
    overflow-y: auto;
}

.pspx-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.pspx-mobile-nav-list li {
    margin-bottom: 16px;
}

.pspx-mobile-link {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pspx-mobile-link:hover {
    color: var(--color-terracotta);
    padding-left: 8px;
}

/* --- Menu a pop-up (opzione "Menu a pop-up") --- */
.pspx-mobile-menu.is-popup {
    inset: 0;
    top: 0;
    height: 100%;
    z-index: 1100;
    padding: 24px;
    background: rgba(20, 14, 10, 0.74);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}
.pspx-mobile-menu.is-popup.is-open { display: flex; }
.pspx-mobile-menu.is-popup.is-open { animation: pspx-pop-fade 0.28s ease both; }
.pspx-mobile-menu.is-popup.is-closing { animation: pspx-pop-fade 0.2s ease reverse both; }
.pspx-mobile-menu.is-popup .pspx-mobile-menu-inner {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 56px 40px 36px;
    background: var(--color-dark-surface);
    border: 1px solid rgba(226, 176, 79, 0.28);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: pspx-pop-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pspx-mobile-menu.is-popup .pspx-mobile-nav-list { margin-bottom: 28px; }
.pspx-mobile-menu.is-popup .pspx-mobile-nav-list li { margin-bottom: 4px; }
.pspx-mobile-menu.is-popup .pspx-mobile-link {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    padding: 10px 0;
    border-bottom: 0;
}
.pspx-mobile-menu.is-popup .pspx-mobile-link:hover,
.pspx-mobile-menu.is-popup .pspx-mobile-link:focus-visible {
    color: #e2b04f;
    padding-left: 0;
}
.pspx-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.pspx-popup-close:hover,
.pspx-popup-close:focus-visible { background: var(--color-terracotta); border-color: var(--color-terracotta); }
.pspx-popup-contacts {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    font-size: 0.9375rem;
}
.pspx-popup-contacts a { color: #e2b04f; }
.pspx-popup-contacts a:hover { color: #f6dfa8; }
body.pspx-popup-open { overflow: hidden; }
@keyframes pspx-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pspx-pop-rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .pspx-mobile-menu.is-popup.is-open,
    .pspx-mobile-menu.is-popup.is-closing,
    .pspx-mobile-menu.is-popup .pspx-mobile-menu-inner { animation: none; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
/* ==========================================================================
   PILLOLE COMPATTE SALE (Pagina Prenotazioni)
   ========================================================================== */
.pspx-sale-pills-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pspx-sale-pill-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.pspx-sale-pill-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-terracotta);
    box-shadow: var(--shadow-card);
}

.pspx-pill-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pspx-pill-info {
    display: flex;
    flex-direction: column;
}

.pspx-pill-info strong {
    font-size: 0.9375rem;
    color: var(--color-dark);
    line-height: 1.25;
    margin-bottom: 3px;
}

.pspx-pill-cap {
    font-size: 0.7812rem;
    color: var(--color-muted);
    font-weight: 500;
}

/* Nasconde il vecchio form inline e i banner/legenda duplicati per pulizia totale */
.pspx-page-template-page-prenotazioni .pps-booking-section,
.page-template-page-prenotazioni .pps-booking-section,
.pps-wrapper .pps-booking-section,
.pps-header-box,
.pps-legend-container {
    display: none !important;
}

/* ==========================================================================
   POPUP MODALE PRENOTAZIONI
   ========================================================================== */
.pspx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.pspx-modal.is-active {
    display: flex;
}

.pspx-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.pspx-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.pspx-modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.pspx-modal-header {
    background: var(--color-stone);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pspx-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-dark);
    font-weight: 800;
}

.pspx-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.pspx-modal-close:hover {
    background: #ffffff;
    color: var(--color-dark);
    transform: scale(1.1);
}

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

.pspx-popup-sale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pspx-sale-card-compact {
    cursor: pointer;
    display: block;
}

.pspx-sale-card-compact input {
    position: absolute;
    opacity: 0;
}

.pspx-sale-card-box {
    border: 1.5px solid var(--color-border);
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.pspx-sale-card-compact input:checked + .pspx-sale-card-box {
    border-color: var(--color-terracotta);
    background: var(--color-terracotta-light);
    box-shadow: 0 2px 8px var(--color-terracotta-glow);
}

.pspx-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pspx-sale-card-box strong {
    display: block;
    font-size: 0.8438rem;
    line-height: 1.25;
}

.pspx-sale-card-box small {
    font-size: 0.7188rem;
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .pspx-sale-pills-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .pspx-popup-sale-grid {
        grid-template-columns: 1fr;
    }
}


/* Menu/hamburger: le regole show/hide sono generate da PHP (inc/funzioni/pspxn_header_menu.php) con il breakpoint scelto in Dati parrocchia. */
@media (max-width: 768px) {
    .pspx-messe-grid {
        grid-template-columns: 1fr;
    }
    .pspx-messe-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .pspx-cards-grid,
    .pspx-news-grid {
        grid-template-columns: 1fr;
    }
    .pspx-footer-grid {
        grid-template-columns: 1fr;
    }
    .pspx-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   STILI HOME PAGE 2 (VERSIONE INNOVATIVA GSAP)
   ========================================================================== */
.pspx-hero-v2 {
    position: relative;
    padding: 70px 0 85px 0;
    background: linear-gradient(180deg, #F5EFE8 0%, var(--color-parchment) 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.pspx-hero-v2-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.pspx-hero-v2-title {
    font-size: clamp(2.375rem, 5.2vw, 3.875rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 18px 0;
}

.pspx-title-line {
    display: block;
    overflow: hidden;
}

.pspx-text-terracotta {
    color: var(--color-terracotta);
}

.pspx-hero-v2-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 560px;
}

.pspx-hero-v2-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pspx-hero-v2-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

.pspx-stat-mini strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1;
}

.pspx-stat-mini span {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.pspx-stat-sep {
    width: 1px;
    height: 35px;
    background: var(--color-border);
}

/* Stack Card con Profondità */
.pspx-hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.pspx-stack-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 4px solid #ffffff;
}

.pspx-stack-back {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 85%;
    transform: rotate(4deg);
    z-index: 1;
    filter: brightness(0.92);
    transition: transform 0.5s ease;
}

.pspx-hero-card-stack:hover .pspx-stack-back {
    transform: rotate(7deg) translate(10px, -10px);
}

.pspx-stack-front {
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.pspx-hero-card-stack:hover .pspx-stack-front {
    transform: rotate(0deg) scale(1.02);
}

.pspx-stack-front img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.pspx-front-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.pspx-front-badge .pspx-badge-tag {
    font-size: 0.625rem;
    color: #4ade80;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.pspx-front-badge strong {
    font-size: 1.125rem;
    font-family: var(--font-heading);
}

/* Cerchio Rotante */
.pspx-circle-rotating {
    position: absolute;
    bottom: -30px;
    right: -30px;
    z-index: 3;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pspxSpin 18s linear infinite;
}

@keyframes pspxSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Marquee Ticker 100% Full Width */
.pspx-marquee-bar {
    background: var(--color-dark);
    color: #ffffff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.pspx-marquee-track {
    display: inline-block;
    animation: pspxMarquee 26s linear infinite;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pspx-marquee-track span {
    margin-right: 40px;
}

@keyframes pspxMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Messe V2 */
.pspx-messe-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pspx-messe-v2-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.pspx-messe-v2-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.pspx-card-featured {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #943417 100%);
    color: #ffffff;
    border-color: var(--color-terracotta);
    box-shadow: 0 15px 35px -5px rgba(184, 74, 42, 0.35);
}

.pspx-card-v2-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pspx-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pspx-tag-outline {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}

.pspx-hours-highlight {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin: 12px 0;
    line-height: 1;
}

/* Oratorio V2 */
.pspx-v2-sale-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.pspx-v2-sale-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

.pspx-dot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pspx-media-frame-v2 {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 4px solid #ffffff;
}

/* Bento Box Grid */
.pspx-bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 260px);
    gap: 24px;
}

.pspx-bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.pspx-bento-large {
    grid-row: span 2;
}

.pspx-bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.pspx-bento-item:hover img {
    transform: scale(1.06);
}

.pspx-bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(28, 25, 23, 0.92) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pspx-bento-overlay h3 {
    color: #ffffff;
    font-size: 1.375rem;
    margin: 10px 0 6px 0;
}

.pspx-bento-overlay p {
    color: #e7e5e4;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .pspx-hero-v2-grid {
        grid-template-columns: 1fr;
    }
    .pspx-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .pspx-bento-large {
        grid-row: span 1;
        min-height: 320px;
    }
    .pspx-bento-item {
        min-height: 240px;
    }
}

/* ==========================================================================
   3D CINEMATIC CHURCH SCROLLYTELLING TOUR (HOME 2 WOW EFFECT)
   ========================================================================== */
.pspx-tour-wrap {
    position: relative;
    width: 100%;
    background-color: #0c0a09;
    color: #ffffff;
    overflow: hidden;
}

.pspx-tour-pin-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* HUD Superiore */
.pspx-tour-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 24px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.4) 60%, transparent 100%);
}

.pspx-tour-hud * {
    pointer-events: auto;
}

.pspx-tour-hud-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pspx-tour-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(184, 74, 42, 0.22);
    border: 1px solid rgba(184, 74, 42, 0.5);
    color: #ff9d80;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.pspx-pulse-dot-red {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5733;
    box-shadow: 0 0 10px #ff5733;
    animation: pspx-radar 1.6s infinite ease-in-out;
}

.pspx-tour-step-indicator {
    font-size: 0.8438rem;
    font-weight: 600;
    color: #e7e5e4;
    letter-spacing: 0.5px;
}

.pspx-tour-step-indicator strong {
    color: #ffffff;
    font-size: 0.9375rem;
}

.pspx-tour-hud-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pspx-tour-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.pspx-tour-audio-btn:hover {
    background: rgba(184, 74, 42, 0.4);
    border-color: var(--color-terracotta);
    transform: translateY(-1px);
}

.pspx-tour-audio-btn.is-active {
    background: var(--color-terracotta);
    border-color: #d9623e;
    box-shadow: 0 0 15px rgba(184, 74, 42, 0.6);
}

.pspx-tour-skip-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a8a29e;
    font-size: 0.7812rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pspx-tour-skip-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Navigation Rail Laterale Destro */
.pspx-tour-nav-rail {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 14px 10px;
    margin: 0;
    background: rgba(12, 10, 9, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    backdrop-filter: blur(12px);
}

.pspx-tour-nav-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pspx-tour-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pspx-tour-nav-label {
    position: absolute;
    right: 26px;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(28, 25, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
}

.pspx-tour-nav-item:hover .pspx-tour-nav-label {
    opacity: 1;
    transform: translateX(0);
}

.pspx-tour-nav-item.is-active .pspx-tour-nav-dot {
    background: var(--color-terracotta);
    border-color: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(184, 74, 42, 0.8);
}

/* Viewport 3D e Camera Layers */
.pspx-tour-camera {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.pspx-tour-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition: filter 0.3s ease;
}

/* Layer 1: Esterno Facciata */
.layer-exterior {
    z-index: 10;
    background-color: #0c0a09;
}

.layer-exterior-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(12, 10, 9, 0.1) 0%, rgba(12, 10, 9, 0.8) 100%),
                linear-gradient(180deg, rgba(12, 10, 9, 0.4) 0%, transparent 40%, rgba(12, 10, 9, 0.9) 100%);
    pointer-events: none;
}

/* Layer 2: Il Portale & Soglia (Zoom In) */
.layer-portal {
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-light-flare {
    position: absolute;
    width: 250px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 235, 200, 0.9) 0%, rgba(184, 74, 42, 0.4) 50%, transparent 80%);
    filter: blur(25px);
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Layer 3: Grande Navata Interna */
.layer-nave {
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    background-position: center 52%;
}

.layer-nave-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 48%, rgba(255, 240, 220, 0.05) 0%, rgba(12, 10, 9, 0.75) 100%);
    pointer-events: none;
}

/* Layer 4: Altare Maggiore & Vetrate */
.layer-altar {
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    background-position: center 46%;
}

.layer-altar-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(255, 220, 160, 0.22) 0%, transparent 65%);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Layer 5: Croce e Reliquia di San Pio X */
.layer-relic {
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0c0a09;
}

.layer-relic-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    filter: brightness(0.35) blur(6px);
    transform: scale(1.1);
}

.layer-relic-subject {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 85%;
    max-height: 65vh;
    object-fit: contain;
    filter: drop-shadow(0 0 45px rgba(230, 160, 60, 0.45));
    animation: pspx-relic-float 4s ease-in-out infinite alternate;
}

@keyframes pspx-relic-float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-12px) scale(1.02); }
}

/* Floating Cinematic Cards (Posizionamento Laterale Pulito - Centro Sempre Libero!) */
.pspx-tour-card {
    position: absolute;
    z-index: 70;
    max-width: 450px;
    width: 32vw;
    min-width: 320px;
    padding: 30px 32px;
    border-radius: 18px;
    background: rgba(22, 19, 17, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 5px solid var(--color-terracotta);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pspx-tour-card.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Posizionamento Laterale Sinistra */
.card-lateral-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%) translateX(-25px);
}

.card-lateral-left.is-visible {
    transform: translateY(-50%) translateX(0);
}

/* Posizionamento Laterale Destra */
.card-lateral-right {
    right: 5%;
    top: 50%;
    transform: translateY(-50%) translateX(25px);
}

.card-lateral-right.is-visible {
    transform: translateY(-50%) translateX(0);
}

.pspx-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(184, 74, 42, 0.28);
    border: 1px solid rgba(184, 74, 42, 0.45);
    color: #ff9d80;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pspx-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.2vw, 1.875rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.pspx-card-desc {
    font-size: 0.9062rem;
    color: #d6d3d1;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.pspx-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.pspx-card-actions .pspx-btn {
    font-size: 0.8438rem;
    padding: 10px 18px;
}

/* Indicatore Scroll Elegante */
.pspx-tour-scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #a8a29e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pspx-scroll-wheel-icon {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    position: relative;
}

.pspx-scroll-wheel-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--color-terracotta);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: pspx-wheel 1.6s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes pspx-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* Ethereal Sacred Particles Canvas */
.pspx-tour-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 35;
    pointer-events: none;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .pspx-tour-hud {
        padding: 16px 20px;
    }
    .pspx-tour-nav-rail {
        display: none;
    }
    .pspx-tour-card {
        padding: 22px;
        left: 5% !important;
        right: 5% !important;
        bottom: 8% !important;
        max-width: none !important;
        transform: translateY(20px) !important;
    }
    .pspx-tour-card.is-visible {
        transform: translateY(0) !important;
    }
}

/* ==========================================================================
   STORYLINE WIDESCREEN & TERRACOTTA PALETTE ENFORCEMENT
   ========================================================================== */
.pspx-storyline-wide-container,
.parrocchia-storyline-container {
    max-width: 1560px !important;
    width: 96% !important;
    margin: 30px auto !important;
}

.storyline-side {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.parrocchia-item-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.parrocchia-badge-date {
    border-color: #B84A2A !important;
    color: #B84A2A !important;
}

.parrocchia-storyline-item:hover .parrocchia-badge-date,
.parrocchia-storyline-item.is-passed .parrocchia-badge-date {
    background-color: #B84A2A !important;
    border-color: #B84A2A !important;
    color: #ffffff !important;
}

.storyline-pin {
    border-color: #D97746 !important;
    box-shadow: 0 0 0 3px rgba(184, 74, 42, 0.25) !important;
}

.parrocchia-storyline-item:hover .storyline-pin,
.parrocchia-storyline-item.is-passed .storyline-pin {
    background-color: #B84A2A !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 5px rgba(184, 74, 42, 0.35) !important;
}

.parrocchia-item-image {
    height: 400px !important;
}

.storyline-line-progress {
    background: linear-gradient(180deg, #B84A2A 0%, #9C391D 60%, #D97746 100%) !important;
    box-shadow: 0 0 12px rgba(184, 74, 42, 0.4) !important;
}

/* Slider Editabile Cotto/Terracotta Call to Actions */
.se-slide-btn {
    background-color: #B84A2A !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(184, 74, 42, 0.4) !important;
}

.se-slide-btn:hover {
    background-color: #9C391D !important;
    box-shadow: 0 6px 20px rgba(184, 74, 42, 0.55) !important;
}

.se-arrow:hover {
    background: #B84A2A !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 15px rgba(184, 74, 42, 0.7) !important;
}

/* ==========================================================================
   CALENDARIO EVENTI: PALETTE COLORI DEL SITO (TERRACOTTA)
   ========================================================================== */
:root {
    --cal-primary: #B84A2A !important;
    --cal-primary-hover: #9C391D !important;
    --cal-primary-light: #fbf0ea !important;
    --cal-primary-border: #ebdcd4 !important;
    --cal-accent: #D97746 !important;
    --cal-today-bg: #fef7f4 !important;
    --cal-selected-bg: #fbf0ea !important;
}

.parrocchia-cal-title {
    color: #B84A2A !important;
}

.parrocchia-cal-btn-today {
    background: #fbf0ea !important;
    color: #B84A2A !important;
    border-color: #ebdcd4 !important;
}

.parrocchia-cal-btn-today:hover {
    background: #B84A2A !important;
    color: #ffffff !important;
    border-color: #B84A2A !important;
}

.parrocchia-cal-day.is-today .parrocchia-day-number {
    background: #B84A2A !important;
    color: #ffffff !important;
}

.parrocchia-cal-day.is-selected .parrocchia-day-number {
    box-shadow: 0 0 0 2px #B84A2A !important;
}

.parrocchia-cal-day.is-today {
    background: #fef7f4 !important;
}

.parrocchia-cal-day.is-selected {
    background: #fbf0ea !important;
}

.parrocchia-day-dot {
    background: #B84A2A !important;
}

.parrocchia-cal-btn:hover {
    color: #B84A2A !important;
}




