@font-face {
    font-family: 'Augsburger';
    src: url('../font/AugsburgerSchriftCAT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --blu-scuro: #363F6E;
    --blu-chiaro: #688B9C;
    --blu-notte: #2F3862;
    --nero: #1B1B1B;
    --sabbia: #C2B197;
    --crema: #f3e7d6;
    --nav-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--nero);
    background-color: var(--crema);
    text-align: center;
}

/* Navigazione */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background-color: rgba(243, 231, 214, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}

.nav-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Augsburger', serif;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

@media (max-width: 430px) {
    .nav-data {
        display: none;
    }
}

/* Sezioni */
.section {
    min-height: calc(100vh - var(--nav-height));
    scroll-margin-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vh, 5rem) 1.5rem;
}

h1 {
    font-family: 'Augsburger', serif;
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    color: var(--blu-scuro);
    margin: 0 0 0.6rem;
}

h2 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--blu-chiaro);
    margin-bottom: 1.25rem;
}

p {
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.6;
    margin-bottom: 2rem;
}

a {
    color: var(--blu-scuro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

a:hover {
    color: var(--sabbia);
}

.site-footer {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(27, 27, 27, 0.1);
    font-size: 0.85rem;
    color: #6b6b6b;
}

.footer-inner {
    max-width: 640px;
    margin-inline: auto;
}

.footer-denominazione {
    margin: 0 0 0.4rem;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--blu-scuro);
}

.footer-dati {
    margin: 0 0 1.25rem;
    line-height: 1.7;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: #8a8a8a;
}

/* ------------------------------------------------------------------
   Sezione Home
   ------------------------------------------------------------------ */
.section-home {
    position: relative;
}

.home-inner {
    max-width: 640px;
}

.home-logo {
    width: clamp(160px, 26vw, 235px);
    height: auto;
    margin-bottom: 1.5rem;
}

/* Filetti laterali: richiamo araldico allo stemma */
.home-sottotitolo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--blu-chiaro);
}

.home-sottotitolo::before,
.home-sottotitolo::after {
    content: '';
    width: clamp(26px, 7vw, 54px);
    height: 1px;
    background-color: rgba(104, 139, 156, 0.55);
}

.home-testo {
    font-size: 1.02rem;
    color: rgba(27, 27, 27, 0.88);
    margin-bottom: 1.5rem;
}

.home-associazione {
    margin-bottom: 2.25rem;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--blu-scuro);
}

/* Annuncio dell'evento in evidenza nella home */
.home-annuncio {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(194, 177, 151, 0.9);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--nero);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.home-annuncio-data {
    font-weight: 600;
    color: var(--blu-scuro);
    transition: color 0.2s;
}

.home-annuncio-freccia {
    color: var(--blu-chiaro);
    transition: color 0.2s;
}

.home-annuncio:hover {
    background-color: var(--blu-scuro);
    border-color: var(--blu-scuro);
    color: var(--crema);
}

.home-annuncio:hover .home-annuncio-data,
.home-annuncio:hover .home-annuncio-freccia {
    color: var(--sabbia);
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(54, 63, 110, 0.2);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 0.87rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.contact-link:hover {
    border-color: var(--sabbia);
    background-color: #fff;
    color: var(--blu-scuro);
}

/* ------------------------------------------------------------------
   Sezione Evento — banda scura a contrasto, layout editoriale
   ------------------------------------------------------------------ */
.section-evento {
    background: linear-gradient(180deg, #3A4374 0%, var(--blu-notte) 100%);
    color: var(--crema);
    text-align: left;
}

/* Su mobile l'ordine del DOM è già quello giusto: cappello e titolo,
   poi la foto, poi le info pratiche. Su desktop la foto affianca le due parti. */
.evento-grid {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: clamp(2rem, 5vw, 3.5rem);
    row-gap: 2rem;
}

/* senza questo i grid item non scendono sotto la larghezza intrinseca della foto */
.evento-grid>* {
    min-width: 0;
}

@media (min-width: 900px) {
    .evento-grid {
        grid-template-columns: 1.05fr 0.95fr;
        grid-template-areas:
            "intro foto"
            "pratico foto";
    }

    .evento-intro {
        grid-area: intro;
        align-self: end;
    }

    .evento-pratico {
        grid-area: pratico;
        align-self: start;
    }

    .evento-foto {
        grid-area: foto;
        align-self: center;
    }
}

.evento-intro p {
    margin-inline: 0;
    max-width: 34rem;
}

.evento-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sabbia);
}

/* Lockup tipografico: il filetto verticale è alto quanto il "100" */
.evento-title {
    display: flex;
    align-items: stretch;
    gap: clamp(0.9rem, 2vw, 1.4rem);
    margin: 0 0 1.5rem;
}

.evento-title-number {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(4.5rem, 11vw, 8rem);
    line-height: 0.8;
    letter-spacing: -0.03em;
    color: var(--sabbia);
}

.evento-title-words {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.12em;
    padding-left: clamp(0.9rem, 2vw, 1.4rem);
    border-left: 2px solid rgba(194, 177, 151, 0.55);
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.9vw, 1.95rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--crema);
}

.evento-subtitle {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.evento-subtitle strong,
.evento-presenta strong {
    color: #fff;
}

.evento-presenta {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: rgba(243, 231, 214, 0.78);
}

/* Dettagli pratici: etichette incolonnate + filetti sottili */
.evento-dettagli {
    margin: 0;
    max-width: 34rem;
}

.dett-row {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(194, 177, 151, 0.28);
}

.dett-row:last-child {
    border-bottom: 1px solid rgba(194, 177, 151, 0.28);
}

.dett-row dt {
    padding-top: 0.15rem;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sabbia);
}

.dett-row dd {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.dett-extra {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(243, 231, 214, 0.72);
}

.section-evento a {
    color: var(--crema);
}

.section-evento a:hover {
    color: var(--sabbia);
}

.dett-link {
    text-decoration: underline;
    text-decoration-color: rgba(194, 177, 151, 0.5);
    text-underline-offset: 3px;
}

/* Call to action */
.evento-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.section-evento .btn-tickets {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    background-color: var(--sabbia);
    color: var(--blu-notte);
    font-size: 1rem;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.section-evento .btn-tickets:hover {
    background-color: var(--crema);
    color: var(--blu-notte);
    transform: translateY(-1px);
}

/* Secondario: stesso formato del bottone biglietti, ma solo contorno */
.section-evento .btn-programma {
    display: inline-block;
    padding: calc(0.9rem - 1px) calc(2.2rem - 1px);
    border: 1px solid rgba(194, 177, 151, 0.7);
    border-radius: 999px;
    color: var(--crema);
    font-size: 1rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.section-evento .btn-programma:hover {
    border-color: var(--sabbia);
    background-color: rgba(194, 177, 151, 0.12);
    color: var(--crema);
    transform: translateY(-1px);
}

/* Foto */
.evento-foto {
    margin: 0;
}

.evento-foto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(194, 177, 151, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.evento-foto figcaption {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: rgba(243, 231, 214, 0.6);
}

@media (max-width: 560px) {
    .dett-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .evento-cta {
        gap: 0.75rem;
    }
}
