/* =====================================================
   Giuliani Networking Dinner @ EADV 2026 – Vienna
   Stili pagine pubbliche (sopra a style.css)
   Sfondo fisso "Vienna" ancorato in basso, header evento sopra.
   ===================================================== */

/* --- Sfondo fisso ------------------------------------------------
   Layer fisso invece di background-attachment:fixed (che iOS ignora).
   Il colore #195FB4 coincide con il blu in alto di background-v/-o.png,
   così sopra all'immagine il raccordo è invisibile.
   background-v.png = display verticali, background-o.png = orizzontali. */
body.eadv {
    background-color: #195FB4;
}
body.eadv::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #195FB4;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    /* immagine di default (portrait); sovrascritta sotto per landscape */
    background-image: url('../img/background-v.png');
}
/* Display verticali (smartphone in piedi, tablet portrait) */
@media (orientation: portrait) {
    body.eadv::before { background-image: url('../img/background-v.png'); }
}
/* Display orizzontali (desktop, smartphone/tablet ruotati) */
@media (orientation: landscape) {
    body.eadv::before { background-image: url('../img/background-o.png'); }
}

/* --- HERO evento (trasparente: lascia vedere lo sfondo) --------- */
.hero-eadv {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 90px;
    background: transparent;
    overflow: hidden;
}
.hero-eadv::before { display: none; } /* rimuove l'onda di style.css */

.hero-eadv .hero-content {
    max-width: 880px;
    width: 100%;
    margin-top: -100px; /* alza i contenuti dell'hero di 100px */
}

/* Bottone "Register now" bianco pieno (ben visibile sopra lo sfondo) */
.hero-eadv .btn-outline {
    background: #fff;
    color: var(--giuliani-navy);
    border-color: #fff;
}
.hero-eadv .btn-outline:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--giuliani-navy);
    border-color: rgba(255, 255, 255, 0.88);
}

.hero-spots-left {
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.hero-spots-left strong { color: #fff; }

.hero-eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero-eadv h1 {
    color: #fff;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

/* Header grafico dell'evento (header.png, sfondo trasparente) */
.hero-header-img {
    display: block;
    width: min(640px, 90%);
    height: auto;
    margin: 0 auto 30px;
    filter: drop-shadow(0 1px 10px rgba(255, 255, 255, 0.35));
}

.event-meta {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 34px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.event-meta strong { color: #fff; font-weight: 700; }
.event-meta .sep { opacity: 0.55; margin: 0 10px; }

/* --- Sezioni su sfondo blu: testo chiaro + card "glass" -------- */
.section-eadv { background: transparent; padding: 70px 0; }
.section-eadv .section-title-center h2 { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.2); }
.section-eadv .section-title-center h4 { color: rgba(255,255,255,.85); }
.section-eadv .section-title-center p  { color: rgba(255,255,255,.9); }

.glass-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.glass-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--card-radius);
    padding: 30px 24px;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.glass-card .icon { font-size: 30px; margin-bottom: 12px; }
.glass-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.glass-card p  { color: rgba(255, 255, 255, 0.92); margin: 0; }

/* Programma della serata */
.programme {
    max-width: 720px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--card-radius);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 12px 28px;
}
.programme-row {
    display: flex;
    gap: 22px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-align: left;
}
.programme-row:last-child { border-bottom: 0; }
.programme-time { flex: 0 0 92px; font-weight: 700; font-family: var(--font-heading); }
.programme-desc { flex: 1; }
.programme-desc strong { display: block; }
.programme-desc small { color: rgba(255, 255, 255, 0.8); }

/* --- Form su sfondo blu: card bianca leggibile ----------------- */
.section-form { padding: 70px 0 90px; background: transparent; }
.section-form .section-title-center h2 { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.2); }
.section-form .section-title-center h4 { color: rgba(255,255,255,.85); }
.section-form .section-title-center p  { color: rgba(255,255,255,.92); }

.register-spots-left {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
}
.register-spots-left strong { color: #fff; }

/* --- Footer translucido ---------------------------------------- */
.footer-eadv { background: rgba(4, 22, 46, 0.72); }

/* --- Responsive ------------------------------------------------ */
@media (max-width: 768px) {
    .hero-eadv { padding: 120px 18px 70px; }
    .hero-eadv .hero-content { margin-top: -40px; } /* meno spinta su schermi bassi */
    .hero-eadv h1 { font-size: 2.1rem; }
    .glass-cards { grid-template-columns: 1fr; }
    .programme-row { flex-direction: row; gap: 14px; }
    .programme-time { flex-basis: 74px; }
}
