/* style.css - Main Stylesheet for Congrégation Mockup */

:root {
    /* Color Palette */
    --primary-color: #0d47a1; /* A deep, reassuring blue */
    --secondary-color: #fbc02d; /* Warm yellow/gold for accents */
    --accent-color: #e53935; /* Red for urgent calls to action */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f7fa; /* Very subtle off-white/blue for backgrounds */
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 5rem 0;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f0f6fc; /* Pallido colore azzurro richiesto */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-white, .text-white h2, .text-white p {
    color: var(--white);
}

.text-dark {
    color: var(--text-color);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #08306b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #333;
}

.btn-secondary:hover {
    background-color: #f9a825;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    line-height: 1.1;
    margin: 0;
}

.logo-text span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    font-family: var(--font-body);
    display: block;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.btn-donate {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.nav-links li a.btn-donate::after {
    display: none;
}

.nav-links li a.btn-donate:hover {
    background-color: #c62828;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    background-image: url('../../fascia sito.jpg'); /* Fascia iniziale fornita dall'utente */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0; /* Changed since header is fixed */
}

/* Specific background image overwrites to prioritize the best one later if needed */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(13, 71, 161, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-overlay {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    padding-top: 5rem;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* News Ticker */
.news-ticker {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 0;
    font-size: 0.9rem;
}

.ticker-label {
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 10px;
}

.ticker-text a {
    color: var(--white);
    text-decoration: underline;
    margin-left: 5px;
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.flex-row {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.flex-half {
    flex: 1;
}

/* Card Styles (Chi Siamo) */
.chi-siamo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-img-container {
    height: 250px;
    background-color: #ddd; /* Fallback */
    background-size: cover;
    background-position: center;
}

/* Background image assignments using files from CONGREGAZIONE */
#img-fondatore { background-image: url('../../padre.jpeg'); }
#img-carisma { background-image: url('../WhatsApp\\ I\\ 15.03.31.jpeg'); }
#img-storia { background-image: url('../WhatsApp\\ Image\\ 2026-03-11\\ at\\ 15.03.30.jpeg'); }

.card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
}

.card p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Dove Siamo Section */
#img-mappa {
    height: 400px;
    background-image: url('../WhatsApp\\ Image\\ 20.jpeg'); /* Placeholder */
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.missions-list {
    margin: 1.5rem 0 2rem;
}

.missions-list li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Apostolato Grid */
.apostolato-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.apostolato-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: var(--transition);
}

.apostolato-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.apostolato-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Vocazioni */
.vocazioni-section {
    background-image: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.9)), url('../WhatsApp\\ Image\\ 2026.jpeg');
    background-size: cover;
    background-attachment: fixed;
    padding: 6rem 0;
}

.vocazioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vocazioni-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: left;
}

.vocazioni-card h3 {
    color: var(--primary-color);
}

/* Donazioni */
.donazioni-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.donazione-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.donazione-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.donazione-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 48px;
}

/* Footer */
.main-footer {
    background-color: #051b3d;
    color: #a0aec0;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
}

.footer-col h3 {
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col.links ul li {
    margin-bottom: 0.8rem;
}

.footer-col.links a {
    color: #a0aec0;
}

.footer-col.links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: #000;
}

.footer-bottom {
    background-color: #031126;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #a0aec0;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    .flex-row {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#lightbox.active {
    display: flex;
}
#lightbox img {
    max-width: 90%;
    max-height: 90vh;
    padding: 0.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    cursor: default;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
