/* ==========================================
   RESET E VARIABILI
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1d3154;
    --color-primary-light: #2a4570;
    --color-accent: #9b8579;
    --color-accent-dark: #7d6a5f;
    --color-accent-light: #b5a49a;
    --color-bg-light: #ffffff;
    --color-surface: #f8f9fa;
    --color-gradient-1: #1d3154;
    --color-gradient-2: #2d4d7d;
    --text-color: #1a1a1a;
    --text-light: #4a5568;
    --muted: #666;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
}

/* ==========================================
   NAVBAR
   ========================================== */
.site-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(29, 49, 84, 0.08);
    height: auto;
    border-bottom: 1px solid rgba(29, 49, 84, 0.05);
}

.site-nav.nav--hidden {
    transform: translateY(-120%);
    pointer-events: none;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 56px 20px 120px;
    position: relative;
    height: auto;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.nav-logo-img {
    height: 122px;
    width: auto;
    margin-right: 20px;
    vertical-align: middle;
    border-radius: 6px;
    display: inline-block;
    filter: brightness(0) saturate(100%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    transition: background-color 0.3s;
    border-radius: 5px;
}

.nav-menu li:hover {
    background-color: transparent;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
    padding: 8px 4px;
    display: block;
    border-radius: 5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-primary) !important;
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 49, 84, 0.3);
}

.dropbtn:hover,
.dropbtn:focus {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 49, 84, 0.5);
}

.dropbtn[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 4px;
    padding: 10px 0;
    text-align: left;
    margin-top: 5px;
}

.dropdown .dropdown-content {
    display: none !important;
}

.dropdown .dropdown-content.show,
.dropdown:focus-within .dropdown-content.show {
    display: block !important;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block !important;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.dropdown-content a:last-child { 
    border-bottom: none; 
}

.dropdown-content a:hover {
    background-color: rgba(29, 49, 84, 0.12);
    color: var(--color-primary) !important;
    padding-left: 24px !important;
}

.show { 
    display: block !important;
    animation: slideDown 0.2s ease-in-out;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* ==========================================
   LARGE TABLET / SMALL DESKTOP
   ========================================== */
@media (max-width: 1180px) {
    .nav-container {
        padding: 12px 20px 10px 32px;
        gap: 14px;
    }

    .logo {
        font-size: 22px;
        gap: 8px;
        white-space: normal;
    }

    .nav-logo-img {
        height: 48px;
        margin-right: 10px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 15px;
        padding: 6px 3px;
    }
}

/* ==========================================
   TABLET (iPad)
   ========================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .site-nav {
        position: sticky;
    }

    .nav-container {
        padding: 10px 14px 8px 18px;
        gap: 12px;
    }

    .logo {
        font-size: 18px;
        gap: 8px;
        flex-shrink: 1;
        white-space: normal;
    }

    .nav-logo-img {
        height: 40px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .nav-menu {
        gap: 12px;
        flex-shrink: 1;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 5px 3px;
    }

    body {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background-color: var(--color-surface);
        box-shadow: 0 2px 18px rgba(0,0,0,0.14);
    }

    .nav-container {
        padding: 10px 12px 8px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    body {
        padding-top: 65px;
    }

    .logo {
        font-size: 20px;
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
        align-items: center;
    }

    .nav-logo-img {
        height: 36px;
        margin-right: 8px;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
        margin-left: auto;
        padding: 8px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .nav-menu.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #fefcf7;
        padding: 12px 0 18px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        gap: 0;
        z-index: 9998;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid rgba(29,49,84,0.08);
    }

    .nav-menu.mobile-active li {
        width: 100%;
        border-bottom: 1px solid rgba(29, 49, 84, 0.08);
    }

    .nav-menu.mobile-active li:last-child {
        border-bottom: none;
    }

    .nav-menu.mobile-active a {
        padding: 16px 22px;
        display: block;
        font-size: 16px;
        color: var(--color-primary);
        font-weight: 600;
    }

    .nav-menu.mobile-active a:hover {
        background-color: rgba(29,49,84,0.06);
        color: var(--color-primary);
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f8f7f3;
        margin-top: 0;
        display: none;
        border-top: 1px solid rgba(29,49,84,0.08);
    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown .dropbtn {
        width: calc(100% - 32px);
        margin: 0 16px;
        padding: 14px 16px;
        text-align: left;
        justify-content: space-between;
        background-color: #1d3154;
        color: #ffffff;
    }

    .dropdown-content a {
        padding: 12px 20px !important;
        color: #1d3154 !important;
    }

    .dropdown-content a:hover {
        background-color: rgba(29,49,84,0.08);
    }
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: white;
    position: relative;
    overflow: hidden;
    background: url('Immagini/G.jpeg') center/cover no-repeat;
    padding-left: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 49, 84, 0.85) 0%, rgba(45, 77, 125, 0.75) 50%, rgba(255, 149, 0, 0.2) 100%);
    z-index: 1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.85; }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(155, 133, 121, 0.15) 0%, transparent 60%);
    z-index: 1;
}

body.non-home .hero {
    height: 40vh;
}

.hero-content {
    max-width: 750px;
    padding: 60px 50px;
    position: relative;
    z-index: 10;
    margin: 0;
    text-align: left;
    background: linear-gradient(135deg, rgba(29, 49, 84, 0.75) 0%, rgba(45, 77, 125, 0.65) 100%);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 58px;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.15;
    color: white;
    text-align: left;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero h3 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--color-accent-light);
    text-align: left;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   CONTENT WRAPPER - CENTRA TUTTO
   ========================================== */
section {
    width: 100%;
    padding: 80px 20px;
}

section > div {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(155, 133, 121, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-container h2 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.about-container h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-content {
    text-align: left;
}

.about-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.about-image {
    height: 500px !important;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}

.about-image .responsive-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image:hover .responsive-image {
    transform: scale(1.05);
}

/* Se grid-template-columns: 1fr (una sola colonna) */
.about-container[style*="grid-template-columns: 1fr;"] {
    grid-template-columns: 1fr !important;
}

/* ==========================================
   PASTOR SECTION
   ========================================== */
.pastor-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.pastor-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 49, 84, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pastor-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pastor-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}

.pastor-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(155, 133, 121, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pastor-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}

.pastor-image:hover::after {
    opacity: 1;
}

.pastor-content h3 {
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pastor-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pastor-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--muted);
}

.pastor-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.pastor-link-btn {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white !important;
    width: 55px;
    height: 55px;
    padding: 0;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(155, 133, 121, 0.3);
    position: relative;
}

.pastor-link-btn:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(29, 49, 84, 0.4);
    color: white !important;
}

.pastor-link-btn i {
    color: white !important;
    position: relative;
    z-index: 1;
}

/* ==========================================
   MEDIA SECTION
   ========================================== */
.media-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.media-section > div {
    max-width: 1200px;
    margin: 0 auto;
}

.media-section h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.media-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.media-section .cta-button {
    background: white;
    color: var(--color-accent) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.media-section .cta-button:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(29, 49, 84, 0.3);
    color: white !important;
}

/* ==========================================
   EVENTS SECTION
   ========================================== */
.events-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 20px;
    position: relative;
}

.events-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(29, 49, 84, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.events-section > h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -1px;
}

.events-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(29, 49, 84, 0.05);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.event-card:hover::before {
    opacity: 1;
}

.event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    position: relative;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.event-content p.time {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.event-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.event-suspended-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 153, 0, 0.12);
    color: #c97a00;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
}

.event-suspended-button:hover,
.event-suspended-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 153, 0, 0.2);
    outline: none;
}

.event-suspended-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #1f2937;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.event-suspended-button:hover .event-suspended-popup,
.event-suspended-button:focus-visible .event-suspended-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.event-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.event-link {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    align-self: flex-start;
    margin-top: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(155, 133, 121, 0.3);
    position: relative;
}

.event-link:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 49, 84, 0.4);
    color: white !important;
}

.event-link span,
.event-link:hover span {
    color: white !important;
}

/* ==========================================
   CREDO SECTION (CHI SIAMO)
   ========================================== */
.credo-section {
    background-color: var(--color-primary);
    color: white;
    padding: 100px 20px;
}

.credo-section h2 {
    font-size: 38px;
    margin-bottom: 60px;
    color: #ff9500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 700;
}

.credo-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.credo-card {
    background-color: transparent;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ff9500;
    transition: all 0.3s;
    text-align: center;
}

.credo-card:hover {
    transform: translateY(-5px);
    background-color: rgba(163, 159, 146, 0.1);
}

.credo-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ff9500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.credo-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #e5e3d5;
}

/* ==========================================
   CONTACT IMAGE
   ========================================== */
.contact-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: block;
    margin: 0;
}

/* ==========================================
   CONTACT INFO
   ========================================== */
.contact-section {
    padding-top: 60px;
    padding-bottom: 70px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    grid-auto-rows: minmax(min-content, auto);
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 0;
    text-align: left;
}

.contact-card {
    background-color: white;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.08);
    text-align: left;
}

@media (max-width: 768px) {
    .contact-right {
        text-align: center;
    }
    .contact-card {
        text-align: center;
    }
}

.contact-meta {
    margin-top: 30px;
    padding: 22px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-meta h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.contact-meta p {
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.75;
}

.section-subtitle {
    font-size: 28px;
    margin: 20px 0 12px;
    color: #1a1a1a;
}

.section-description {
    margin-bottom: 24px;
    color: var(--muted);
    max-width: 600px;
}

.contact-info {
    background-color: white;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.contact-info h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-info p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--text-color);
    font-weight: 600;
}

.contact-info a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--color-primary);
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 260px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================
   FORM STYLES
   ========================================== */
#contact-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    display: block;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: inherit;
    background-color: #ffffff;
    color: var(--text-color);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 5px rgba(163, 159, 146, 0.3);
}

#form-response {
    margin-top: 8px;
    color: #27ae60;
    display: none;
    font-weight: 500;
}

#form-error {
    margin-top: 8px;
    color: #e74c3c;
    font-weight: 500;
}

/* ==========================================
   BUTTONS
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white !important;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(155, 133, 121, 0.35);
    min-height: 48px;
    position: relative;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(29, 49, 84, 0.4);
    color: white !important;
}

.cta-button span,
.cta-button:hover span {
    color: white !important;
    position: relative;
    z-index: 1;
}

.cta-button:active {
    transform: translateY(0);
}

/* ==========================================
   SOCIAL BUTTONS
   ========================================== */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-btn {
    background-color: var(--color-surface);
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.social-btn.social-icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white !important;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(155, 133, 121, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-btn.social-icon:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(29, 49, 84, 0.4);
    color: white !important;
}

.social-btn.social-icon i {
    color: white !important;
    position: relative;
    z-index: 1;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-accent {
    color: var(--color-accent);
    font-weight: 700;
}

.time {
    margin-top: 15px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0 20px 40px;
    width: 100%;
    margin-top: 60px;
}

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 40px;
        align-items: start !important;
        padding: 0 30px;
    }

.footer-column {
    min-width: 0;
}

    .footer-column.footer-left{
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 14px;
        align-items: center;
    }

.footer-logo-box {
    grid-column: 1 / 2;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    display: block;
    width: 200px;
    height: auto;
    position: relative;
    z-index: 1;
}

.footer-brand {
    grid-column: 2 / 3;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    align-self: flex-start;
    padding-top: 0;
}

.footer-social {
    grid-column: 1 / 2;
    justify-self: start;
    display: flex;
    gap: 12px;
    margin: 0 0 10px;
    justify-content: flex-start;
}

.footer-block {
    margin: 0 0 12px;
}

.footer-block-title {
    display: block;
    color: #ff9500;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.2;
}

.footer-block-content {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #ffffff;
}

.footer-block-content a {
    color: #ffffff;
    text-decoration: none;
}

.footer-block-content a:hover {
    text-decoration: underline;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.footer-social-icon:hover {
    background-color: #ff9500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    margin-top: 34px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

.footer-links {
    margin-left: auto;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-content { 
        grid-template-columns: 1fr; 
        padding: 0;
        gap: 20px;
    }

    .footer-column.footer-left {
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-self: center;
        justify-content: center;
    }
    
    .footer-bottom { 
        flex-direction: column; 
        align-items: center;
        margin-left: 0;
        margin-right: 0;
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-links { 
        margin-top: 10px;
        margin-left: 0;
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-column p {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-column strong {
        display: block;
        color: #ff9500;
        margin-bottom: 2px;
        font-weight: 600;
    }

    .footer-brand {
        padding-top: 0;
        margin-bottom: 0;
    }

    .footer-social {
        justify-self: center;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 900px) {
    .site-nav {
        position: fixed;
    }

    .nav-container {
        padding: 10px 14px;
    }

    .logo {
        font-size: 17px;
        gap: 8px;
    }

    .nav-logo-img {
        height: 42px;
        margin-right: 8px;
    }

    .hero {
        min-height: 78svh;
        height: auto;
        padding: 92px 14px 34px;
        align-items: flex-end;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 22px 20px;
        border-radius: 16px;
        backdrop-filter: blur(8px);
    }

    .hero h1 {
        font-size: clamp(24px, 5.2vw, 34px);
        line-height: 1.16;
    }

    .hero h3 {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-container,
    .pastor-container,
    .contact-layout {
        gap: 28px;
    }

    .about-container h2,
    .pastor-content h2 {
        font-size: 28px;
    }

    .about-image,
    .pastor-image {
        height: 320px;
    }

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

    .event-card {
        border-radius: 14px;
    }

    .event-content {
        padding: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0;
    }

    .footer-column.footer-middle,
    .footer-column.footer-right {
        margin-top: 0;
    }

    .footer-column.footer-left {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
        padding-top: 0;
    }

    .footer-social {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-links {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 968px) {
    section {
        padding: 60px 20px;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-container,
    .pastor-container,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 800px;
    }

    .about-container h2 {
        font-size: 32px;
    }

    .pastor-section {
        padding: 60px 20px;
    }

    .events-section {
        padding: 60px 20px;
    }

    .events-section > h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .credo-section {
        padding: 60px 20px;
    }

    .credo-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

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

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

    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 36px;
    }

    .pastor-image {
        height: 350px;
    }

    .about-image {
        height: 350px !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 45px 12px;
    }

    /* Mobile: reduce extra top spacing so hero is visible under fixed nav */
    .hero {
        padding: 12px 12px 20px;
        min-height: 55svh;
        align-items: flex-start;
    }

    .hero-content {
        max-width: 100%;
        padding: 16px 18px;
        border-radius: 16px;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 15px;
    }

    .site-nav {
        min-height: 60px;
    }

    .nav-container {
        padding: 10px 12px 8px;
    }

    .nav-menu.mobile-active {
        max-height: calc(100vh - 70px);
    }

    .about-section {
        padding: 50px 15px;
    }

    .pastor-section {
        padding: 50px 15px;
    }

    .events-section {
        padding: 50px 15px;
    }

    .credo-section {
        padding: 50px 15px;
    }

    .about-container,
    .pastor-container,
    .contact-layout {
        max-width: 100%;
        gap: 30px;
    }

    .about-container h2 {
        font-size: 28px;
    }

    .events-section > h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .credo-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

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

    .contact-image {
        height: 220px;
    }

    .pastor-image {
        height: 300px;
    }

    .about-image {
        height: auto !important;
    }

    .about-image .responsive-image {
        height: auto;
        object-fit: contain;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .events-grid {
        gap: 20px;
    }

    .credo-card {
        padding: 20px;
    }

    .map-container {
        height: 250px;
    }

    .pastor-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .pastor-image--desktop {
        display: none !important;
    }

    .pastor-image--mobile {
        display: block !important;
        width: 100%;
        max-width: 420px;
        height: 280px;
        margin: 0 auto 24px;
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(0,0,0,0.16);
        object-fit: cover;
        object-position: center 18%;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 40px 12px;
    }

    /* Reduce top space so hero sits nicely below fixed nav */
    .hero {
        padding: 12px 12px 18px;
        min-height: 64svh;
    }

    .hero-content {
        width: 100%;
        padding: 18px;
        border-radius: 14px;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 13px;
    }

    .nav-container {
        padding: 9px 12px 8px;
    }

    .mobile-menu-btn {
        font-size: 24px;
    }

    .about-section {
        padding: 40px 12px;
    }

    .about-container h2 {
        font-size: 22px;
    }

    .about-content p {
        font-size: 14px;
    }

    .cta-button {
        font-size: 14px;
        padding: 11px 20px;
    }

    .mobile-menu-btn {
        font-size: 26px;
    }

    .about-section {
        padding: 40px 12px;
    }

    .pastor-section {
        padding: 40px 12px;
    }

    .events-section {
        padding: 40px 12px;
    }

    .credo-section {
        padding: 40px 12px;
    }

    .about-container h2 {
        font-size: 24px;
    }

    .events-section > h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .credo-section h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .contact-image {
        height: 160px;
    }

    .pastor-image {
        height: 250px;
    }

    .pastor-image--mobile {
        display: block !important;
        height: 280px !important;
        margin: 0 auto 24px !important;
        object-position: center 18% !important;
    }

    .about-image {
        height: auto !important;
    }

    .about-image .responsive-image {
        height: auto;
        object-fit: contain;
    }

    .responsive-image {
        object-position: center top;
        transition: transform 0.3s ease;
    }

    .responsive-image:hover {
        transform: scale(1.02);
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    .event-card {
        margin: 0;
    }

    .event-image {
        height: 200px;
    }

    .event-content {
        padding: 20px;
    }

    .credo-card {
        padding: 15px;
        border: 1px solid #ff9500;
    }

    .credo-card h3 {
        font-size: 16px;
    }

    .credo-card p {
        font-size: 13px;
    }

    .map-container {
        height: 200px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .social-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .social-btn.social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ==========================================
   ANIMAZIONI E EFFETTI AVANZATI
   ========================================== */

/* Scroll reveal animations */
@keyframes fadeInUpSmooth {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-container,
.pastor-container,
.events-grid > * {
    animation: fadeInUpSmooth 0.8s ease-out;
}

/* Smooth pulse per CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(155, 133, 121, 0.35);
    }
    50% {
        box-shadow: 0 8px 30px rgba(155, 133, 121, 0.55);
    }
}

.cta-button {
    animation: pulse 3s ease-in-out infinite;
}

/* Shimmer effect per titoli gradiente */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.about-container h2,
.pastor-content h2,
.events-section > h2 {
    background-size: 200% auto;
    animation: shimmer 8s linear infinite;
}

/* Smooth scrolling migliorato */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Focus states accessibili */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Miglioramenti tipografici */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance ottimizzazione */
.event-image,
.about-image img,
.pastor-image {
    will-change: transform;
}

/* Hover effect con scala per cards */
.event-card,
.about-image,
.pastor-image {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Gradient background dinamico */
@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    background-size: 200% 200%;
    animation: gradientRotate 20s ease infinite;
}

/* Effetto parallasse leggero per hero */
@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        transform: perspective(1000px) translateZ(0);
        transition: transform 0.3s ease-out;
    }
}

/* Dark mode support (opzionale per il futuro) */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
    }
}

/* Riduzione animazioni per accessibilità */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Titoli con gradient per pagine interne */
.page-title-gradient,
h1.page-title-gradient {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .page-title-gradient,
    h1.page-title-gradient {
        font-size: 36px;
    }
}

/* ==========================================
   PAGINE INTERNE (CHI SIAMO, CONTATTI)
   ========================================== */

/* Background moderno per pagine interne */
body.non-home {
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 100vh;
}

/* Hero ridotto per pagine interne */
body.non-home .hero {
    height: 45vh;
    min-height: 300px;
}

body.non-home .hero-content {
    padding: 30px 40px;
    max-width: 600px;
}

body.non-home .hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

body.non-home .hero h3 {
    font-size: 18px;
    letter-spacing: 2px;
}

/* Immagine contact migliorata */
.contact-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: block;
    margin: 0;
}

/* Titoli sezioni chi-siamo */
#chi-siamo-content h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

#chi-siamo-content h3 {
    font-size: 28px;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

#chi-siamo-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 22px;
}

/* Cards credo migliorate */
.credo-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a4570 100%);
    color: white;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.credo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.credo-section h2 {
    font-size: 48px;
    margin-bottom: 70px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.credo-section h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #ff9500 0%, #ffb347 100%);
    margin: 25px auto 0;
    border-radius: 3px;
}

.credo-grid {
    position: relative;
    z-index: 1;
}

.credo-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 35px;
    border-radius: 15px;
    border: 2px solid rgba(255, 149, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.credo-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 149, 0, 0.18);
    border-color: #ff9500;
    box-shadow: 0 15px 40px rgba(255, 149, 0, 0.25);
}

.credo-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #ff9500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.credo-card p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

/* Sezione sociale migliorata */
#sociale {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 20px;
}

#sociale h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

#sociale p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section Migliorata */
.contact-section {
    padding-top: 80px;
    padding-bottom: 90px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.contact-section h2 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--text-color);
    font-weight: 700;
}

.section-description {
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 600px;
    font-size: 17px;
    line-height: 1.8;
}

/* Form moderno */
#contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#contact-form label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    display: block;
}

#contact-form input,
#contact-form textarea {
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.1);
    transform: translateY(-2px);
}

#contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

#contact-form .cta-button {
    margin-top: 10px;
}

/* Contact meta e card migliorate */
.contact-meta {
    margin-top: 40px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(155, 133, 121, 0.08) 0%, rgba(155, 133, 121, 0.03) 100%);
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 2px solid rgba(155, 133, 121, 0.15);
}

.contact-meta h4 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--text-color);
    font-weight: 700;
}

.contact-meta p {
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.contact-meta strong {
    color: var(--color-accent);
    font-weight: 700;
}

.contact-meta a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-meta a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: left;
    border: 1px solid rgba(29, 49, 84, 0.05);
}

.contact-card h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 18px;
    font-weight: 700;
}

.contact-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.7;
}

.map-container {
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 3px solid white;
}

/* Form response migliorate */
#form-response {
    margin-top: 25px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
    border-radius: 12px;
    color: #155724;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

#form-error {
    margin-top: 25px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 5px solid #dc3545;
    border-radius: 12px;
    color: #721c24;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Responsive per pagine interne */
@media (max-width: 768px) {
    .contact-image {
        height: 220px;
    }
    
    #chi-siamo-content h1 {
        font-size: 32px;
    }
    
    #chi-siamo-content h3 {
        font-size: 24px;
    }
    
    .credo-section h2 {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .credo-card {
        padding: 25px;
    }
    
    .contact-section h2 {
        font-size: 36px;
    }
    
    .contact-card,
    .contact-meta {
        text-align: center;
    }
}
