:root {
    --text-color: #ffffff;
    --overlay: rgba(0, 0, 0, 0.6); /* Leggermente più scuro per contrasto con font sottili */
    --accent-color: #f1c40f;
    --font-title: 'Cabin Sketch', cursive;
    --font-body: 'Amatic SC', cursive;
}

body, html {
    margin: 0;
    padding: 0;
    /* Impostiamo Amatic come font base */
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #1a1a1a;
    /* Amatic richiede una dimensione maggiore per essere leggibile */
    font-size: 22px; 
    line-height: 1.4;
    /* Font smoothing per rendere i font calligrafici più nitidi */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gestione sfondo ottimizzata */
.hero-background {
    background: linear-gradient(var(--overlay), var(--overlay)), 
                url('sfondo-luce-dice-no-hd.png') no-repeat center center;
    background-size: cover;
    /* Scroll su mobile per evitare repaint costosi e scatti */
    background-attachment: scroll; 
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
}

header {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

/* Stili per il Titolo in Cabin Sketch */
.title-section h1 {
    font-family: var(--font-title);
    font-size: 4rem; /* Dimensione aumentata per impatto visivo */
    margin: 15px 0 5px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    color: var(--accent-color); /* Opzionale: titolo in giallo per risaltare */
}

.title-section h2 {
    font-size: 1.8rem; /* Aumentato per compensare la dimensione di Amatic */
    font-weight: 700; /* Il grassetto aiuta la leggibilità di Amatic */
    margin: 5px 0;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: 1px;
}

.book-cover {
    width: 160px; /* Leggermente più grande */
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    transform: rotate(-3deg); /* Piccolo tocco stilistico */
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: rotate(0deg) scale(1.05);
}

.content section {
    margin-bottom: 30px;
    font-size: 1.6rem; /* Testo del corpo grande e leggibile */
    font-weight: 400;
}

/* Grassetto personalizzato per Amatic */
strong {
    font-weight: 700;
    color: var(--accent-color); /* Enfatizza i punti salienti col colore */
}

.highlight {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    line-height: 1.2;
}

.links-section {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem; /* Testo link ben visibile */
    font-weight: 700;
    transition: background 0.3s ease;
}

.link-item:hover {
    background: rgba(255,255,255,0.25);
}

.link-item img {
    width: 32px;
    margin-right: 15px;
}

.author-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    margin-top: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.author-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.author-section p {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3;
}

.hashtag {
    text-align: center;
    margin: 40px 0 20px 0;
    font-size: 2.5rem;
    font-family: var(--font-title); /* Usa Cabin Sketch anche per l'hashtag */
    color: var(--accent-color);
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 60px;
    }
    
    .title-section h1 { 
        font-size: 6rem; /* Molto grande su desktop */
    }
    
    .title-section h2 {
        font-size: 2.2rem;
    }

    .author-section {
        flex-direction: row;
        text-align: left;
    }
    
    .author-photo { 
        margin-bottom: 0; 
        margin-right: 25px; 
    }
    
    .hero-background { 
        /* Parallax solo su desktop dove la potenza di calcolo è maggiore */
        background-attachment: fixed; 
        padding: 80px 20px; 
    }
    
    .content section {
        font-size: 1.8rem;
    }
}

/* --- Stili per la sezione Appuntamenti --- */

.events-section {
    margin: 40px 0;
    text-align: center;
}

.events-section h3 {
    font-family: var(--font-title); /* Usa Cabin Sketch come il titolo principale */
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
    margin-top: 0;
    letter-spacing: 1px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spazio tra gli eventi */
}

.event-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); /* Stesso effetto vetro dei link */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.event-row:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(5px); /* Leggero movimento all'hover */
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    margin-right: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.2); /* Linea divisoria */
    min-width: 60px;
    color: var(--accent-color); /* Giallo per la data */
    line-height: 1;
}

.event-date .day {
    font-size: 2.2rem;
    font-weight: 700;
}

.event-date .month {
    font-size: 1.4rem;
    font-weight: 700;
}

.event-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.event-info strong {
    font-size: 1.7rem;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2px;
}

.event-info .city {
    font-size: 1.4rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}