/* ==========================================
   EVENTI - LAYOUT MODERNO E ELEGANTE
   ========================================== */

/* This file uses the global theme variables defined in the main stylesheet */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background elegante per pagine eventi */
body.event-page {
    background: linear-gradient(135deg, #f0f2f5 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 100vh;
} 

.event-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0 24px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    color: var(--text-color);
    border: 2px solid rgba(155, 133, 121, 0.2);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-back-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 133, 121, 0.2);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .event-back-link {
        margin: 18px 0 0 16px;
        padding: 9px 14px;
        font-size: 0.88rem;
    }
}

/* ==========================================
   NAVIGATION (uguale per tutte le pagine)
   ========================================== */
.site-nav {
    background-color: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease, box-shadow 0.5s ease;
} 

/* When scrolling down we hide the nav by translating it upward */
.site-nav.nav--hidden {
    transform: translateY(-120%);
    pointer-events: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 8px 80px;
    text-decoration: none;
}

/* Small logo image shown in the nav before the site name */
.nav-logo-img {
    height: 122px; /* 2x the previous desktop size */
    width: auto;
    margin-right: 28px;
    vertical-align: middle;
    border-radius: 6px;
    display: inline-block;
    filter: brightness(0) saturate(100%);
}

@media (max-width: 968px) {
    .nav-logo-img { height: 97px; margin-right: 20px; }
}

/* ==========================================
   TABLET (iPad)
   ========================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 10px 16px 8px 20px;
        gap: 15px;
    }

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

    .nav-menu {
        gap: 15px;
        flex-shrink: 1;
    }

    .nav-menu a {
        font-size: 13px;
        padding: 5px 2px;
        white-space: nowrap;
    }

    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);
    }

    body {
        padding-top: 65px;
    }

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

    .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: flex;
        list-style: none;
        gap: 39px;
        align-items: center;
    }
}

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

/* For desktop we prefer an underline highlight instead of a background fill */
.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: 17px;
    padding: 4px 6px;
    display: block;
    border-radius: 5px;
}

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

/* Dropdown navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-accent);
    color: var(--text-color);
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.nav-dropdown .nav-cta:hover {
    background-color: var(--color-primary);
    color: white;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 8px 0; 
    z-index: 1000;
    opacity: 0;
    transform: scale(0.96);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms, transform 300ms;
}

.dropdown-menu.show {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--color-neutral);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

/* ==========================================
   HERO SEZIONE EVENTO (Card centrale)
   ========================================== */
.hero-event {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px;
}

.hero-inner {
    max-width: 600px;
    width: 100%;
}

.hero-content {
    background: rgba(140, 140, 140, 0.85);
    backdrop-filter: blur(10px);
    padding: 50px 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.hero-content p.lead {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
} 

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white !important;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
} 

.cta-button:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* ==========================================
   SEZIONE CONTENUTO
   ========================================== */
.event-body {
    max-width: 900px;
    margin: 60px auto 80px;
    padding: 0 40px;
}

.event-body h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.event-body p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Footer styles are now inherited from the main stylesheet (style.css) so the footer looks identical across the site */

/* If you need event-specific footer tweaks, add them here, otherwise leave empty */


@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);
    }

    body {
        padding-top: 65px;
    }

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

    .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;
    }

    .nav-menu.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.mobile-active li {
        width: 100%;
        border-bottom: 1px solid var(--color-neutral);
    }

    .nav-menu.mobile-active a {
        padding: 15px 0;
    }

    .hero-content {
        padding: 40px 30px;
    }

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

    .event-body {
        padding: 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 28px;
    }

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

/* ==========================================
   NUOVO LAYOUT PAGINE EVENTI MODERNO
   ========================================== */

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

.event-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    letter-spacing: -1px;
} 

.event-hero-content .subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
} 

.event-hero-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

.breadcrumb {
    padding: 20px 40px;
    font-size: 14px;
    color: var(--muted);
    max-width: 1200px;
    margin: 0 auto;
} 

.breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
} 

.breadcrumb a:hover {
    text-decoration: underline;
}

.event-details {
    padding: 80px 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
} 

.details-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.details-sidebar {
    padding: 35px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(155, 133, 121, 0.1);
    position: sticky;
    top: 100px;
} 

.details-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-sidebar h3:before {
    content: "●";
    color: var(--color-accent);
    font-weight: 700;
}

.details-sidebar p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 18px;
}

.details-sidebar strong {
    color: var(--color-accent);
    font-weight: 700;
}

.details-sidebar a {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(155, 133, 121, 0.3);
    border: none;
}

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

.details-content h2 {
    font-size: 36px;
    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;
}

.details-content h3 {
    font-size: 24px;
    color: var(--color-accent);
    margin-top: 40px;
    margin-bottom: 18px;
    font-weight: 700;
}

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

.details-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
    list-style: none;
}

.details-content li {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
    padding-left: 30px;
}

.details-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 768px) {
    .event-hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .event-hero-content h1 {
        font-size: 40px;
    }

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

    .event-details {
        padding: 40px 20px;
    }

    .breadcrumb {
        padding: 15px 20px;
        font-size: 12px;
    }
}
