/* style.css */
/* RESET BASE */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'arno-pro', serif;
    background-color: #fdf6e3;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
}

/* Titoli */
h1,
h2,
h3,
.hero-text h1,
.site-section h2 {
    font-family: 'arno-pro-display', serif;
    font-weight: bold;
}

/* Testi piccoli e footer */
footer,
small,
.small,
.site-footer,
.caption,
.footer-nav {
    font-family: 'arno-pro-caption', serif;
}

/* NAVBAR (questa sezione non cambia) */
.navbar {
    background-color: #f3d690 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.10);
    border-bottom: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.menu li a {
    text-decoration: none;
    color: #5c3b1e;
    font-weight: bold;
}

.menu li a:hover {
    text-decoration: underline;
}

/* HAMBURGER MENU (questa sezione non cambia) */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #5c3b1e;
    margin-left: 1rem;
}

/* SOCIAL BAR (NON FISSA) */
.social-bar {
    width: 100%;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1.6rem;
}

.social-icons a {
    color: #5c3b1e;
    font-size: 1.55rem;
    text-decoration: none;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #d32d2f;
}

/* MAIN CONTENT (questa sezione non cambia) */
main {
    padding: 2rem;
    max-width: 960px;
    margin: auto;
}

/* HERO SECTION (questa sezione non cambia) */
.hero {
    background-color: #f1ead7;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

/* FOOTER (questa sezione non cambia) */
footer {
    background-color: #fff9e5;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
}

/* SECTION GENERICHE (questa sezione non cambia) */
section {
    padding: 2.5rem 2rem;
    margin: 0 auto 2.5rem;
    max-width: 960px;
    background: transparent;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    body {
        padding-top: 100px;

        /* AGGIUNGI O MODIFICA QUESTA RIGA ANCHE QUI PER COERENZA */
    }

    .menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        flex-direction: column;
        background: #fff9e5;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 1rem 2rem;
        z-index: 999;
    }

    .menu-icon {
        display: block;
    }

    #menu-toggle:checked + .menu-icon + .menu {
        display: flex;
    }

    .social-bar {
        /* Non è necessario il margin-top anche qui */
        width: 100%;
        padding: 0.4rem 0;
        margin: 0;

        /* ASSICURATI CHE IL MARGIN SIA 0 */
    }

    .social-icons {
        max-width: 1200px;

        /* imposta un limite centrale */
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.6rem;
        box-sizing: border-box;
    }

    section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
}

.banner-alto {
    background-image: url('/assets/grafica/fondoOro.png');
    background-repeat: repeat;
    background-size: 120px 120px;

    /* o "auto" se preferisci */
    background-color: #fff9e5;

    /* fallback se la PNG ha trasparenza */
    box-shadow: 0 2px 5px rgba(0,0,0,0.10);

    /* Puoi aggiungere qui altre proprietà comuni a tutti i banner alti */
}

.nav-link.active {
    border-bottom: 2.5px solid #5c3b1e;

    /* oppure il colore che preferisci */
    color: #5c3b1e !important;

    /* opzionale, per rafforzare il colore */
    background-color: transparent;

    /* nessuno sfondo, solo underline */
    font-weight: 600;

    /* opzionale: rende più “autorevole” */
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/assets/images/revisions-cd-collage.webp');

    /* CAMBIA il path con la tua immagine */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;

    /* visibile al 100%, regola se vuoi */
    transition: opacity 0.4s;
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 1.5rem 0;

    /* Rimuovi il background di base qui! */
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/assets/images/revisions-cd-collage.webp');

    /* Sostituisci con la tua immagine */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,0.60);

    /* Overlay più scuro: regola tra 0.55 e 0.65 */
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    color: #faf8f2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.footer-content a,
.footer-content .fw-semibold {
    color: #ffe7a0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-content a:hover,
.footer-content a:focus {
    color: #fff;
    text-decoration: underline;
}

.footer-content .fw-semibold {
    color: #b8ffb0;

    /* verde pastello, più leggibile di verde brillante */
}

/* Blocchi di testo secondari (es. .small) */
.footer-content .small,
.footer-content .footer-nav {
    color: #e5ddc7;
    opacity: 0.96;
}

.footer-content .small a {
    color: #ffe7a0;
}

.site-footer .footer-content {
    font-family: 'arno-pro-caption', serif;
}

/* Responsive: footer-content sempre leggibile anche su schermi piccoli */
@media (max-width: 600px) {
    .footer-content {
        padding: 1rem 0.5rem;
        font-size: 0.97em;
    }
}

.footer-content .small,
.footer-content .footer-nav,
.footer-content .small a {
    color: #faf8f2 !important;
    font-weight: 600;
    font-size: 1.05em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75), 0 1px 1px rgba(0,0,0,0.6);
    opacity: 0.98;
}

.site-footer::after {
    background: rgba(0,0,0,0.65);

    /* overlay più scuro */
}

.network-brand {
    color: #d9871b;

    /* oppure il colore del logo */
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: color 0.2s;
    text-decoration: underline dotted;

    /* Dotted underline = sottolineatura elegante, opzionale */
}

.network-brand:hover,
.network-brand:focus {
    color: #ffb85c;

    /* tono chiaro del logo in hover */
    text-decoration: underline;
}

.footer-content .small a.network-brand {
    color: #d9871b !important;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    text-decoration: underline dotted;
    opacity: 1;
    background: none;
}

.footer-content .small a.network-brand:hover,
.footer-content .small a.network-brand:focus {
    color: #ffb85c !important;
    text-decoration: underline;
}

.img-divider {
    max-width: 100%;
    height: auto;
    margin: 32px auto 32px auto;
    display: block;
}