html { max-width: 100%; overflow-x: hidden; }
body {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}
footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
.logo a { display: inline-block; line-height: 0; }
.logo-header { height: 130px; width: auto; max-width: none; transition: height 0.25s ease; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item { min-width: 0; overflow: hidden; }
.gallery-item img { width: 100%; }

/* SFONDO FOTO SU TUTTO IL SITO */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
        url("sfondo.jpg") center / cover no-repeat;
    filter: blur(3px);
    transform: scale(1.05);
}

/* HEADER FISSO IN ALTO + SFONDI TRASPARENTI */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: padding 0.25s ease;
}
/* Con JavaScript attivo l'header è fisso e non sposta più il contenuto */
header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
header.no-anim,
header.no-anim .logo-header {
    transition: none !important;
}
#hero {
    background-color: transparent;
    border-bottom: none;
}
#hero p { color: #222222; }
section p { color: #111111; }
.servizio-card { background-color: rgba(255, 255, 255, 0.88); }
footer { background-color: rgba(0, 0, 0, 0.88); }

/* HEADER RIMPICCIOLITO DURANTE LO SCROLL */
header.header-small { padding-top: 8px; padding-bottom: 8px; }
header.header-small .logo-header { height: 50px; }
header.header-small nav ul { margin-top: 6px; }

/* SELETTORE LINGUE in fondo alla pagina, prima dei contatti (creato da lingue.js) */
.selettore-lingue {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    text-align: center;
}
.selettore-lingue + footer { margin-top: 30px; }
.selettore-lingue .selettore-titolo {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000000;
}
.selettore-lingue ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.selettore-lingue a,
.selettore-lingue .lingua-corrente {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 2px solid #000000;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}
.selettore-lingue a:hover { background-color: #000000; color: #ffffff; }
.selettore-lingue .lingua-corrente { background-color: #000000; color: #ffffff; }
.selettore-lingue .bandiera { display: inline-flex; line-height: 0; }
.selettore-lingue .bandiera svg {
    width: 24px;
    height: 16px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* FOTO D'ARCHIVIO GANDOLFO nelle pagine "Chi siamo" (frecce: archivio.js) */
.archivio-gandolfo { max-width: 760px; margin: 0 auto; }
.archivio-gandolfo figure { margin: 0; }
.archivio-etichetta {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000000;
}
.archivio-wrap {
    position: relative;
    border: 1px solid #000000;
    background-color: rgba(255, 255, 255, 0.88);
}
.archivio-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.archivio-slider::-webkit-scrollbar { display: none; }
.archivio-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    scroll-snap-align: start;
    cursor: zoom-in;
}
.archivio-btn,
.archivio-conta { display: none; }
.archivio-wrap.attivo .archivio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.archivio-wrap.attivo .archivio-btn:disabled { opacity: 0.25; cursor: default; }
.archivio-prec { left: 8px; }
.archivio-succ { right: 8px; }
.archivio-wrap.attivo .archivio-conta {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 12px;
}
.archivio-gandolfo figcaption {
    margin-top: 12px;
    text-align: center;
    font-style: italic;
    font-size: 15px;
    line-height: 1.4;
    color: #111111;
}
