:root {
    --primary: #8b0000;
    --primary-light: #b01a1a;
    --accent: #d4af37;
    --accent-light: #f1e09a;
    --bg: #fdfcf0;
    --bg-light: #ffffff;
    --text: #2c2c2c;
    --text-light: #555555;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo-text {
    font-family: 'Playfair Display', serif;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    margin: 15px 0 0;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px;
    color: var(--text-light);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.navbar.scrolled .main-logo {
    max-height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links li {
    position: relative;
    padding: 10px 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent) !important;
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--accent);
    list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    color: var(--text-light) !important;
    display: block;
    padding: 10px 25px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 0.7rem;
    margin-left: 8px;
    vertical-align: middle;
    opacity: 0.7;
}

.nav-toggle {
    display: none;
}

/* Page Headers */
.page-header {
    background-color: var(--primary);
    padding: 120px 0 60px;
    color: var(--white);
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/img/hero_bg.jpg');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('assets/img/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
        word-wrap: break-word;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.countdown-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    background: rgba(22, 22, 22, 0.4);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
}

.countdown-item span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.countdown-item label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* History Grid */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.history-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 10px solid var(--white);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success { color: #28a745; }
.form-status.error { color: #dc3545; }

/* Responsive Adjustments for Contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Responsive Sidebar & Grid Optimization */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .history-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: #1a1a1a;
        padding: 100px 40px 40px;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: left;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.3rem;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }

    .nav-links a.active {
        color: var(--accent) !important;
    }

    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 1001;
    }

    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--white);
        transition: var(--transition);
        right: 0;
    }

    .navbar.scrolled .nav-toggle span, 
    .navbar.scrolled .nav-toggle span::before, 
    .navbar.scrolled .nav-toggle span::after {
        background: var(--primary);
    }

    .nav-toggle span { top: 11px; }
    .nav-toggle span::before { top: -9px; }
    .nav-toggle span::after { top: 9px; }

    .nav-toggle.active span { background: transparent !important; }
    .nav-toggle.active span::before { transform: rotate(45deg); top: 0; width: 30px; background: var(--white) !important; }
    .nav-toggle.active span::after { transform: rotate(-45deg); top: 0; width: 30px; background: var(--white) !important; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social .social-icons {
        align-items: center;
    }
}
/* Footer */
.footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo-img {
    max-height: 120px;
    width: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-info p {
    max-width: 400px;
    color: #999;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-social .social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social .social-icons a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-social .social-icons a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    font-size: 3rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 2001;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(139, 0, 0, 0.8);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Historical Documents */
.historical-document {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    margin: 40px auto;
}

.document-header h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.document-body blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 25px;
}

/* Prayer Page Specifics */
.prayer-card {
    background: #fff;
    padding: 80px 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.prayer-card::before {
    content: 'â€ ';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.3;
}

.prayer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text);
    font-style: italic;
    white-space: pre-line;
}

.amen {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 40px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 20px;
        background: transparent;
        border-top: none;
    }
    
    .active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle::after {
        display: none;
    }
}

/* Parish Table styles */
.cronotassi-container {
    overflow-x: auto;
    margin: 40px 0;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cronotassi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.cronotassi-table th {
    background: #f8f9fa;
    color: var(--primary);
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--accent);
}

.cronotassi-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    vertical-align: top;
}

.cronotassi-table tr:hover td {
    background: #fffdf5;
    color: var(--primary);
}

/* Artistic Highlight Cards */
.art-tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.art-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.art-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.art-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.art-card-content {
    padding: 25px;
}

.art-card-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.art-card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* --- REGOLE FINALI PER RESPONSIVITÀ (OVERRIDE) --- */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }
    .footer-info p {
        margin: 0 auto !important;
    }
    .footer-social .social-icons {
        align-items: center !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    .footer h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .countdown-container {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .countdown-item {
        min-width: 70px !important;
        padding: 10px !important;
        flex: 1 1 40% !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    .page-header h1 {
        font-size: 1.6rem !important;
    }
}

/* Program Preview Styles */
.program-notice-card {
    background: #fffdf5;
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    align-items: center;
}

.program-notice-logo {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
}

.program-notice-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-notice-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.program-notice-signature {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.synthetic-calendar-container {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.synthetic-table {
    width: 100%;
    border-collapse: collapse;
}

.synthetic-table th {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-align: left;
}

.synthetic-table th:first-child {
    border-radius: 10px 0 0 10px;
}

.synthetic-table th:last-child {
    border-radius: 0 10px 10px 0;
}

.synthetic-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 1.05rem;
}

.synthetic-table tr:last-child td {
    border-bottom: none;
}

.synthetic-date {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.synthetic-event {
    font-weight: 600;
}

.synthetic-event span {
    display: block;
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 5px;
}

.synthetic-table tr:hover td {
    background: #fffdf5;
}

/* Accordion Dettagliato */
.accordion-container {
    max-width: 900px;
    margin: 40px auto;
}

.accordion-item {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.accordion-header {
    padding: 22px 30px;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-header h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.accordion-header h3 span {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

.accordion-body {
    padding: 10px 30px 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.detailed-event-row {
    padding: 20px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
}

.detailed-event-row:last-child {
    border-bottom: none;
}

.event-time {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.event-desc h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.event-desc p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.event-note-box {
    margin-top: 12px;
    padding: 15px;
    background: #fffdf5;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Alert Banner Home */
.alert-promo-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
    position: relative;
    z-index: 10;
}

.alert-promo-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.alert-promo-text {
    text-align: left;
}

.alert-promo-text h3 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.alert-promo-text p {
    font-size: 1.05rem;
    font-weight: 300;
}

.alert-promo-banner .btn {
    padding: 12px 30px;
    font-size: 0.9rem;
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
}

.alert-promo-banner .btn:hover {
    background: var(--accent-light);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .program-notice-card {
        flex-direction: column;
        text-align: center;
    }
    
    .program-notice-signature {
        text-align: center;
    }
    
    .detailed-event-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .alert-promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-promo-text {
        text-align: center;
    }
}

/* Filtri Programma */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 0, 0, 0.02);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.25);
}

/* Badge Categoria per eventi */
.event-category-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-category-badge.religioso {
    background-color: rgba(139, 0, 0, 0.1);
    color: var(--primary);
}

.event-category-badge.folclore {
    background-color: rgba(212, 175, 55, 0.15);
    color: #a67c00;
}

.event-category-badge.pirotecnico {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3;
}

.event-category-badge.musicale {
    background-color: rgba(40, 167, 69, 0.1);
    color: #1e7e34;
}

/* Pulsante download opuscolo */
.program-download-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a0000 100%);
    color: var(--white);
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.program-download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
}

.program-download-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.program-download-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.program-download-content p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.program-download-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-weight: 600;
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.program-download-content .btn:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Ditte pirotecniche box */
.pyro-firms-container {
    margin-top: 10px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #0056b3;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pyro-firms-container strong {
    color: #0056b3;
    display: block;
    margin-bottom: 4px;
}

.pyro-firm-item {
    padding: 2px 0;
    color: var(--text-dark);
}

.pyro-firm-item span {
    font-weight: 600;
    color: var(--primary);
}

/* Mappa Notte Bianca */
.map-notte-bianca {
    margin-top: 40px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.map-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.map-place-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.map-place-item h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.map-place-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Nascondere elementi per filtri */
.accordion-item.filtered-out {
    display: none !important;
}



