/* ==========================================================================
   AMUNÌ TOURISM — EVENTI (mobile, allineata al resto del sito)
   Stessa logica di prima (caricamento lingua, fade-in, redirect desktop):
   qui cambia solo l'aspetto.
   ========================================================================== */

:root {
    --sky: #5B8FAE;
    --sea: #1B4965;
    --sea-ink: #14283A;

    --stone: #EFE6D3;
    --stone-dim: #DCCFAF;

    --terracotta: #C1622D;
    --terracotta-dark: #9C4C22;

    --gold: #B8873B;
    --gold-light: #D4AF6A;

    --ink: #22303B;
    --ink-soft: #465563;

    --shadow-soft: rgba(0, 0, 0, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}

body {
    background: var(--stone);
    color: var(--ink);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   SFONDO — piatto pietra, come tutte le pagine interne (solo la home
   mobile mantiene la foto del borgo)
   ========================================================================== */
.scene-background {
    position: fixed;
    inset: 0;
    background: var(--stone);
    z-index: -10;
}

.scene-background::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(60, 40, 20, 0.16) 100%);
    pointer-events: none;
}

/* ==========================================================================
   DASHBOARD — identica alle altre pagine interne
   ========================================================================== */
.dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 65px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(15, 25, 34, 0.92);
    backdrop-filter: blur(18px) saturate(200%);
    border-bottom: 2px solid var(--gold);
    z-index: 1000;
}

.logo-container {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold-light);
    white-space: nowrap;
}

.right-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 100%;
}

.btn-home {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 230, 211, 0.08);
    border: 1px solid var(--gold);
    border-radius: 2px;
    text-decoration: none;
    font-size: 1rem;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-switcher button {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2px;
    background: rgba(239, 230, 211, 0.08);
    border: 1px solid rgba(239, 230, 211, 0.4);
    color: var(--stone);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lang-switcher button.active {
    border-color: var(--gold);
    background: rgba(184, 135, 59, 0.25);
    color: var(--gold-light);
}

/* ==========================================================================
   SCROLL CONTENT — stesso fade-in discreto di prima
   ========================================================================== */
.scroll-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   INTRODUZIONE
   ========================================================================== */
.home-welcome-poetry {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.home-welcome-poetry h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--sea);
    margin-bottom: 14px;
}

.home-welcome-poetry p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.barocco-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 22px 0;
}

/* ==========================================================================
   BLOCCHI STAGIONALI — card a vetro scuro, stesso trattamento delle
   altre pagine, qui su sfondo piatto pietra
   ========================================================================== */
.event-section {
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

.event-season-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--sea);
    border-bottom: 1px dashed var(--gold);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.event-detail-box {
    background: rgba(15, 25, 34, 0.88);
    padding: 16px 18px;
    border-radius: 2px;
    border: 1px solid var(--gold);
    margin-bottom: 14px;
    box-shadow: 0 6px 16px var(--shadow-soft);
}

.event-detail-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.event-detail-box p {
    font-family: 'Cormorant Garamond', serif;
    text-align: left;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--stone);
    margin-bottom: 0;
}

/* ==========================================================================
   BOTTONE CASTELLANA E INVITO DESKTOP
   ========================================================================== */
.event-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.event-buttons .btn-barocco {
    background: var(--sea);
    border: 1px solid var(--gold);
    border-radius: 2px;
    padding: 14px 6px;
    color: var(--stone);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    box-shadow: 0 6px 14px var(--shadow-soft);
}

.event-buttons .btn-barocco:active {
    background: var(--terracotta-dark);
}

.btn-avatar-special {
    border-color: var(--gold) !important;
}

.desktop-tip {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--terracotta-dark);
    line-height: 1.4;
    padding: 0 10px;
}

/* ==========================================================================
   VERSIONE DESKTOP (DA 900PX IN SU) — stessa struttura di prima,
   solo colori e font aggiornati
   ========================================================================== */
@media screen and (min-width: 900px) {
    .dashboard {
        min-height: 70px;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 24px;
    }

    .logo-container { flex: 0 1 auto; }
    .right-controls { flex: 0 1 auto; }

    .dashboard .logo-title { font-size: 1.3rem; }

    .lang-switcher button {
        width: 36px;
        height: 36px;
    }

    .scroll-content { padding-top: 130px; }
    .home-welcome-poetry { width: 60vw; max-width: 700px; }

    .home-welcome-poetry h1 { font-size: 1.9rem; }
    .event-season-title { font-size: 1.4rem; }

    .event-buttons .btn-barocco:hover {
        background: var(--terracotta-dark);
    }
}
.btn-home svg {
    color: var(--gold-light);
}
