/* ------------------------------
   PALETTE & FONT
------------------------------ */

:root {
    --blu-notte: #0a1a2a;
    --oro: #d4af37;
    --rosso-scuro: #7a1c1c;
    --panna: #f3e9d2;
    --bianco: #ffffff;
    --testo: #e8e2d9;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--blu-notte);
    color: var(--testo);
    font-family: 'Merriweather', serif;
    line-height: 1.6;
}

/* ------------------------------
   LINKS & GENERALI
------------------------------ */

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px 0;
}

/* ------------------------------
   HERO SECTION
------------------------------ */

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--panna);
    overflow: hidden;
}

.hero img.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 20, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero h1 {
    position: relative;
    font-size: 3rem;
    z-index: 2;
    color: var(--oro);
}

.hero .subtitle {
    position: relative;
    font-size: 1.2rem;
    margin-top: 10px;
    z-index: 2;
}

.cta {
    position: relative;
    margin-top: 25px;
    padding: 12px 28px;
    background-color: var(--oro);
    color: var(--blu-notte);
    border-radius: 6px;
    font-weight: 700;
    z-index: 2;
    transition: 0.3s;
}

.cta:hover {
    background-color: var(--rosso-scuro);
    color: var(--panna);
}

/* ------------------------------
   SEZIONI GENERALI
------------------------------ */

section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

h2 {
    color: var(--oro);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* ------------------------------
   INFO GRID
------------------------------ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.info-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-mini {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 18px;
    border-radius: 8px;
}

.info-right {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 22px;
    border-radius: 8px;
}


/* ------------------------------
   DESCRIZIONE
------------------------------ */

.description p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    text-align: center;
    color: var(--panna);
}

/* ------------------------------
   PERCORSO GRID E IMMAGINI
------------------------------ */

.percorso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.percorso-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--oro);
    padding: 20px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ------------------------------
   IMAGE SLIDER
------------------------------ */


.image-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
    margin-top: 10px;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}


/* immagini percorso */
.percorso-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* fade-in già gestito da JS */
.percorso-img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------
   ATTIVITÀ COLLATERALI
------------------------------ */

.attivita p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* ------------------------------
   ORGANIZZATORI
------------------------------ */

.organizzatori p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--panna);
}

/* ------------------------------
   MAPPA
------------------------------ */

.mappa iframe {
    margin-top: 20px;
    border-radius: 6px;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
    background-color: #050d15;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--panna);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
}

footer .credits {
    font-style: italic;
    text-align: right;
}


/* ------------------------------
   ANIMAZIONI FADE-IN
------------------------------ */

.fade-in, .percorso-img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible, .percorso-img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 1024px) {
    .percorso-img {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero {
        height: 75vh;
    }
    .percorso-img {
        max-height: 180px;
    }
}
