@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --primary-color: #ff3366; 
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body, html {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    background-color: #111;
    overflow-x: hidden;
}

/* NAVBAR STYLING */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Simple language dropdown wrapper */
.lang-switcher-wrapper {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.lang-switcher-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-switcher-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: #222;
    min-width: 80px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.lang-switcher-content a {
    color: #ddd;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    text-align: center;
}

.lang-switcher-content a:hover {
    background-color: var(--primary-color);
    color: white;
}

.lang-switcher-wrapper:hover .lang-switcher-content {
    display: block;
}

/* Hamburger button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover span {
    background-color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-links a {
    font-size: 2.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.mobile-links a:hover, .mobile-links a.active {
    color: var(--primary-color);
}

.mobile-links a.active {
    position: relative;
    padding-left: 0.5rem;
}

.mobile-links a.active::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -20px;
    font-size: 2.5rem;
    line-height: inherit;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: url('../assets/donne-in-moto-nei-borghi.jpeg') no-repeat center -100%;
    background-size: contain;
    padding-top: 80px;
}

/* Make bottom section solid so text is 100% legible */
.bottom-section {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, #111 80%, rgba(17,17,17,0.8) 95%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 1px;
}

p.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ddd;
    font-weight: 300;
    max-width: 600px;
}

.event-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-width: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.time-box span.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.time-box span.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
    font-weight: 400;
    color: var(--primary-color);
}

footer {
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1rem;
}

/* PAGES: I BORGHI ZONE LIST */
.page-wrapper {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(to bottom, #1a1a1a, #111);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.campania-map {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zones-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    gap: 2rem;
    flex: 1;
}

.zone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,51,102,0.3);
}

.zone-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.zone-card p {
    color: #ccc;
    line-height: 1.6;
    font-weight: 300;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .hero {
        background-image: url('../assets/donne-in-moto-nei-borghi-mobile.jpeg');
        background-size: contain;
        background-position: center -100%;
        background-repeat: no-repeat;
        padding-top: 80px;
    }
    h1 {
        font-size: 2rem;
    }
    .countdown-container {
        gap: 0.8rem;
    }
    .time-box {
        min-width: 80px;
        padding: 0.8rem;
    }
    .time-box span.number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .bottom-section {
        padding: 2rem 1rem 1.5rem;
        background: #111;
    }
    .time-box {
        min-width: 70px;
        padding: 0.6rem;
    }
    .time-box span.number {
        font-size: 1.5rem;
    }
    .time-box span.label {
        font-size: 0.6rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .zone-card {
        padding: 1.5rem;
    }
}
