:root{
    --rosso: #a0110b;
    --grigio: #D5D5D5;
}

/* Layout Generale Storia */
.history-wrapper {
    padding-top: 80px;
    background-color: #fff;
}

/* Hero Section con Immagine */
.history-hero {
    position: relative;
    height: 80vh; /* Più alta per mostrare bene l'immagine */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* SOSTITUISCI IL PATH CON LA TUA IMMAGINE */
    background-image: url('../img/sfondo-storico.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effetto Parallasse */
}

/* Overlay scuro per far leggere il testo bianco */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Regola l'opacità se l'immagine è troppo chiara */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 20px;
}

.subtitle-hero {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    color: #f1f1f1;
}

.main-title-hero {
    font-family: 'Playfair Display', serif;
    font-size: clamp(45px, 10vw, 85px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.header-line-gold {
    width: 60px;
    height: 3px;
    background: var(--rosso); /* O un color oro se preferisci */
    margin: 0 auto;
}

/* Rimuove il fixed su mobile per evitare bug di performance */
@media (max-width: 768px) {
    .history-hero {
        background-attachment: scroll;
        height: 60vh;
    }
}

/* Sezioni di Racconto */
.story-section {
    padding: 80px 20px;
}

.story-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-section.reverse .story-container {
    direction: rtl; /* Inverte l'ordine per l'effetto alternato */
}

.story-section.reverse .story-text {
    direction: ltr; /* Riporta il testo alla normalità */
}

.story-image img {
    width: 100%;
    border-radius: 4px; /* Un raggio piccolo è più elegante per foto storiche */
    box-shadow: 20px 20px 0px var(--rosso); /* Effetto decorativo */
}

.image-caption {
    margin-top: 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grigio-soft);
}

.story-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Citazione */
.quote-section {
    background: #f9f9f9;
    padding: 100px 20px;
    text-align: center;
}

.elegant-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 36px);
    font-style: italic;
    color: var(--nero);
    max-width: 800px;
    margin: 0 auto;
}

.elegant-quote cite {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rosso);
}

/* Responsive */
@media (max-width: 768px) {
    .story-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .story-section { padding: 40px 20px; }
    .story-image img { box-shadow: 10px 10px 0px var(--rosso); }
}