html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #0a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f5f5f5;
    line-height: 1.6;
}

/* Effetto acqua animata di sfondo */
.water-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: 
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="water" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M0,30 Q15,10 30,30 T60,30" fill="none" stroke="white" stroke-width="2"/></pattern></defs><rect width="60" height="60" fill="url(%23water)"/></svg>');
    animation: wave 15s linear infinite;
    z-index: -1;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

/* Container principale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    position: relative;
    overflow: hidden;
}


header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
    animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #daa520 0%, #ffd700 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.3);
    animation: fadeInDown 1s ease-out;
}

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

.tagline {
    font-size: 1.3rem;
    color: #e0d5b7;
    font-style: italic;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    animation: fadeIn 1.5s ease-out;
}

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

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffd700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #d4af37;
    line-height: 1.8;
}

.highlight {
    color: #ffd700;
    font-weight: bold;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saint-illustration {
    width: 280px;
    height: 380px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 3px solid rgba(218, 165, 32, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(218, 165, 32, 0.3), inset 0 0 50px rgba(255, 215, 0, 0.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.saint-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: rgba(218, 165, 32, 0.6);
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
}

.luminaria-img {
    max-width: 100%;
    height: auto;
    width: 240px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.gallery a { display: inline-block; }
.thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}
.thumb:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(218,165,32,0.25);
    border-color: rgba(218,165,32,0.3);
}

.gallery-section {
    max-width: 840px;
    margin: 18px auto 48px auto;
    background: rgba(10,26,46,0.65);
    border: 1px solid rgba(218,165,32,0.08);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    text-align: center;
}
.gallery-section h3 {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    margin: 0 0 10px 0;
    font-size: 1rem;
    letter-spacing: 1px;
}
@media (max-width: 480px) {
    .thumb { width: 52px; height: 52px; }
    .gallery-section { padding: 12px; margin: 12px auto 28px auto; }
}

.qr-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    display: block;
}

.light-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.ray {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    transform-origin: center;
    animation: shine 3s ease-in-out infinite;
}

.ray:nth-child(1) { width: 2px; height: 100%; left: 30%; animation-delay: 0s; }
.ray:nth-child(2) { width: 2px; height: 100%; left: 50%; animation-delay: 1s; }
.ray:nth-child(3) { width: 2px; height: 100%; left: 70%; animation-delay: 2s; }

@keyframes shine {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.8; }
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 0;
    margin-bottom: 60px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.2) 0%, rgba(25, 25, 112, 0.2) 100%);
    border-left: 4px solid #daa520;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.2);
    border-left-color: #ffd700;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.feature-card p {
    color: #c9b8a8;
    font-size: 0.95rem;
}

/* Storytelling Section */
.story-section {
    background: linear-gradient(135deg, rgba(30, 50, 80, 0.6) 0%, rgba(40, 60, 100, 0.6) 100%);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 10px;
    padding: 50px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '✦';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 2rem;
    color: rgba(218, 165, 32, 0.3);
}

.story-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #ffd700;
}

.story-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d4af37;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #e0d5b7;
    margin-bottom: 40px;
}

.qr-container {
    display: inline-block;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(218, 165, 32, 0.4);
    margin-bottom: 30px;
    animation: scaleIn 0.8s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-code {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    color: #0a1a2e;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
}

.qr-label {
    color: #333;
    font-weight: bold;
    margin-top: 15px;
    font-size: 0.95rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #daa520 0%, #ffd700 100%);
    color: #0a1a2e;
    padding: 16px 40px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin: 20px 10px;
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 60px 0;
    margin: 60px 0;
}

.stat {
    text-align: center;
    padding: 30px;
    background: rgba(70, 130, 180, 0.1);
    border-radius: 8px;
    border-top: 3px solid #daa520;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-label {
    color: #c9b8a8;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    color: #999;
    font-size: 0.9rem;
}

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

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

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

    .logo {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .story-section {
        padding: 30px;
    }
}

/* Effetto scrolling aggiuntivo */
.scroll-reveal {
    opacity: 0;
    animation: revealOnScroll 1s ease-out forwards;
}

@keyframes revealOnScroll {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    padding: 20px;
}
.lightbox-content {
    position: relative;
    width: 92%;
    max-width: 1100px;
    background: linear-gradient(180deg, rgba(10,18,34,0.95), rgba(10,18,34,0.98));
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 28px;
    cursor: pointer;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.06);
    border: none;
    color: #ffd700;
    font-size: 36px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-prev { left: -28px; }
.lightbox-next { right: -28px; }
.lightbox-inner { text-align:center; }
