:root { --ui-transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out, width 0.2s ease-out, padding 0.2s ease-out; }
/* Font servite dal sito (licenza OFL, vedi fonts/licenses). Nessuna chiamata a Google. */
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/quicksand-variable.woff') format('woff');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/space-grotesk-variable.woff') format('woff');
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/space-mono-regular.woff') format('woff');
}
@font-face {
    font-family: 'Antonio';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/antonio-bold.woff') format('woff');
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/space-mono-bold.woff') format('woff');
}

body {
    padding: 0 16px;
    margin: 0px;
    background-color: #fff;
}

h1 {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    color: #BDBDBD;
}

h3 {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    color: #BDBDBD;
}

h4 {
    font-family: 'Space Mono', monospace;
    color: #BDBDBD;
}

p {
    font-family: Quicksand;
    color: #BDBDBD;
}

ul{
    text-align: right;
}

li {
    list-style-type: none;
    margin-bottom: 10px;
    padding: 0 8px 0 0 ;
}

.header {
    height: 100px;
}

.footerStyle {
    margin: 30px 0 30px 0;
}

.headerHomepage {
    /*position: fixed;*/
    top: 0;
    width: 100%;
    /*background: rgb(34,34,34);
    background: linear-gradient(0deg, rgba(34,34,34,0) 0%, rgba(0, 0, 0, 0.8) 100%);*/
    z-index: +1;
    height: 100px;
}

.headerYears {
    /*position: fixed;*/
    display: flex;
    justify-content: center;
    top: 0;
    width: 100%;
    /*background: rgb(34,34,34);
    background: linear-gradient(0deg, rgba(34,34,34,0) 0%, rgba(0, 0, 0, 0.8) 100%);*/
    z-index: +1;
    height: 50px;
}


.heroImage {
    margin: 0px auto;
    padding: 0;
    max-width: 600px;
}


.mainImg {
    margin: 0 auto;
    /*min-height: 720px;*/
    /*object-position: bottom right;*/
    animation: fadeIn 1s ease-in-out;
    max-width: 100%; /* Adjust this value to limit the image's width */
    max-height: 100%; /* Adjust this value to limit the image's height */
    object-fit: contain; /* Keep aspect ratio and don't cut the image */
    display: block; /* Remove default inline element space */
}

.superNameContainer{
    position: absolute;
    top: 25%;
    left: 25%;
    text-align: center;
    align-content: center;
    margin: 0 auto;
}

.superName{
    font-size: 150px;
    opacity: 0.9;
}

footer {
    text-align: center;
    align-content: center;
    margin: 30px auto;
}

.siteName {
    color: #333;
    text-decoration: none;
    font-family: Reenie Beanie;
    font-size: 24px;
    text-decoration: none;
    margin: 0;
    font-weight: 100;
}

.siteTitle {
    width: 50%;
    padding: 15px 15px 0 15px;
    text-decoration: none;
    float: left;
}

.modalTitle {
    width: 60%;
    padding: 15px 15px 0 15px;
    text-decoration: none;
    float: left;
}

.nameTag {
    color: #333;
    text-decoration: none;
    font-size: 30px;
    font-family: 'Antonio', 'Arial Narrow', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}


.smallName {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin: 5px 0;
}

.topNav {
    float: right;
    padding: 15px 0;
    margin: 0;
}

.topNavYears {
    display: flex;
    text-align: center;
    padding: 15px;
    margin: 0 0 36px 0 ;
    
}



.bottomNav {
    padding: 15px;
    margin: 0;
}

.navLink {
    text-decoration: none;
    color: #333;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 13px;
    /*background-image: linear-gradient(180deg,transparent 90%,#333333 0);*/
}

.navLink:hover {
    background-image: linear-gradient(180deg,transparent 60%,rgb(202, 209, 218) 0);
    cursor: pointer;
    color: #000;
}

.navLinkSelected {
    text-decoration: none;
    color: #333;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 13px;
    /*background-image: linear-gradient(180deg,transparent 90%,#333333 0);*/
    background-image: linear-gradient(180deg,transparent 60%,rgb(202, 209, 218) 0);
    color: #000;
}

.navLinkYear {
    text-decoration: none;
    color: #333;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 12px;
    /*background-image: linear-gradient(180deg,transparent 90%,#333333 0);*/
}

.navLinkYear:hover {
    background-image: linear-gradient(180deg,transparent 60%,rgb(202, 209, 218) 0);
    cursor: pointer;
    color: #000;
}

.navLinkYearSelected {
    text-decoration: none;
    color: #333;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 12px;
    /*background-image: linear-gradient(180deg,transparent 90%,#333333 0);*/
    background-image: linear-gradient(180deg,transparent 60%,rgb(202, 209, 218) 0);
    color: #000;
}

.navLinkBio {
    text-decoration: none;
    color: #0d58b4;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 14px;
    /*background-image: linear-gradient(180deg,transparent 90%,#333333 0);*/
}

.navLinkBio:hover {
    background-image: linear-gradient(180deg,transparent 60%,rgb(195, 217, 247) 0);
    cursor: pointer;
    color: #00408e;
}


.genericLink {
    text-decoration: none;
    color: #bdbdbd;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    margin-bottom: 20px;
    background-image: linear-gradient(180deg,transparent 90%,#333333 0);
}

.genericLink:hover {
    background-image: linear-gradient(180deg,transparent 60%,#4F4F4F 0);
    cursor: pointer;
    color: rgb(255, 255, 255);
}

.footerLink {
    text-decoration: none;
    color: #bdbdbd;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    margin: 10px;
    background-image: linear-gradient(180deg,transparent 90%,#333333 0);
}

.footerLink:hover {
    background-image: linear-gradient(180deg,transparent 60%,#4F4F4F 0);
    cursor: pointer;
    color: #fff;
}

.centralContent {
    max-width: 1000px;
    margin: 100px auto 0 auto;
    padding: 15px;
}

.centralContentPress {
    max-width: 720px;
    margin: 20px auto 0 auto;
    padding: 15px;
    animation: moveFromBottom 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.centralContentBio {
    max-width: 1000px;
    margin: 100px auto 100px auto;
    padding: 30px;
    border-top: 4px dotted #333333;
    border-bottom: 4px dotted #333333;
}

.box {
    width: 100%;
    height: 50px;
    background-color: #ebeced;
}

.genericImg {
    margin: 0 auto;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.25);
    transition: var(--ui-transition);
}

.genericImg:hover {
    box-shadow: 0px 16px 36px 0px rgba(0,0,0,0.50);
    transform: scale(1.02);
}

.mainImgTitle {
    margin: 5px 0 5px 0;
}

.mainImgDescription {
    margin: 0 0 0 0;
    font-weight: 300;
    font-size: 12px;
    color: #BDBDBD;
    font-family: 'Space Mono', monospace;
}

.descriptionContainer {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.homepageGallery {
    max-width: 1200px;
    margin: 150px auto;
    height: 500px;
}

.gallery {
    display: flex;
    height: 100%;
}

.galleryItem {
    width: 33%;
    height: 200px;
    padding: 30px;
}

.galleryImg {
    padding: 10px;
    width: 33%;
}

.gridImg {
    width: 33%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.25);
    transition: var(--ui-transition);
}

.articleImg {
    margin: 30px 15px 0px 15px;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.25);
    transition: var(--ui-transition);
}

.articleImg:hover {
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
}

.publicationRow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 12px;
}

.bookCover {
    width: 130px;
    height: auto;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.25);
    transition: var(--ui-transition);
}

.bookCover:hover {
    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.4);
}

.editionLinks {
    display: flex;
    gap: 8px;
}

.editionTag {
    text-decoration: none;
    color: #333;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.5px;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 4px 12px;
    transition: var(--ui-transition);
}

.editionTag:hover {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.editionArrow {
    opacity: 0.6;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0px 8px 40px 0px rgba(0,0,0,0.6);
}

.detailBtn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 3px;
    cursor: pointer;
    transition: var(--ui-transition);
    z-index: 1001;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
}

input:checked + .slide-container .detailBtn {
    opacity: 1;
    pointer-events: auto;
}

.detailBtn img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.detailBtnLabel {
    display: none;
}

.detailBtn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.4);
}

body.lightbox-open .detailBtn {
    display: none;
}

@media screen and (max-width: 600px) {
  .detailBtn {
    bottom: 8px;
    right: 8px;
    padding: 3px;
  }
  .detailBtn img {
    width: 58px;
    height: 58px;
  }
  .detailBtnLabel {
    font-size: 7px;
  }
}

.lightboxNav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    color: #333;
    font-size: 14px;
    width: 22px;
    height: 60px;
    cursor: pointer;
    display: none;
    z-index: 100000;
    line-height: 1;
    transition: var(--ui-transition);
}

.lightboxPrev {
    border-radius: 0 6px 6px 0;
}

.lightboxNext {
    border-radius: 6px 0 0 6px;
}

.lightboxNav:hover {
    background: #fff;
    width: 26px;
}

.lightboxPrev {
    left: 0;
}

.lightboxNext {
    right: 0;
}

@media screen and (max-width: 600px) {
  .lightboxNav {
    width: 18px;
    height: 48px;
    font-size: 12px;
  }
}

.lightboxSideTab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #333;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 6px;
    cursor: pointer;
    z-index: 100001;
    box-shadow: -2px 2px 10px 0px rgba(0,0,0,0.3);
    transition: var(--ui-transition);
}

.lightboxSideTab:hover {
    padding-right: 10px;
}

.lightboxSideTab img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 3px;
}

.lightboxSideTab span {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.3px;
    color: #333;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@media screen and (max-width: 600px) {
  .lightboxSideTab img {
    width: 34px;
    height: 34px;
  }
  .lightboxSideTab span {
    font-size: 7px;
  }
}

.cookieBanner {
    position: fixed;
    left: 12px;
    bottom: 12px;
    right: auto;
    max-width: 250px;
    margin: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.12);
    padding: 9px 11px;
    z-index: 999999;
    font-family: 'Space Mono', monospace;
}

.cookieBanner p {
    margin: 0 0 7px 0;
    font-size: 9.5px;
    color: #444;
    line-height: 1.4;
}

.cookieBannerActions {
    display: flex;
    gap: 6px;
}

.cookieBtn {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    padding: 3px 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--ui-transition);
}

.cookieBtnAccept {
    background: #1e293b;
    color: #fff;
    border: 1px solid #1e293b;
}

.cookieBtnAccept:hover {
    background: #333;
}

.cookieBtnReject {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.cookieBtnReject:hover {
    border-color: #333;
}

@media screen and (max-width: 600px) {
  .publicationRow {
    gap: 12px;
  }
  .bookCover {
    width: 100px;
  }
  .carousel-thumb {
    width: 38px;
    height: 38px;
  }
  .carousel-thumbnails {
    justify-content: flex-start;
    gap: 6px;
  }
}

.articleTitle {
    margin: 30px 0px 0px 0px;
    font-weight: 500;
    font-size: 18px;
    color: #BDBDBD;
    letter-spacing: 1px;
    line-height: 24px;
    font-family: 'Space Mono', monospace;
}

.articleSubtitle {
    font-weight: 500;
    font-size: 16px;
    color: #BDBDBD;
    letter-spacing: 1px;
    line-height: 24px;
    font-family: 'Space Mono', monospace;
}

.articlePreview {
    margin: 0px 0px 0px 0px;
    font-weight: 300;
    font-size: 16px;
    color: #BDBDBD;
    letter-spacing: 1px;
    line-height: 24px;
}

.galleryParent {
    width: 100%;
}

.galleryChild {
    padding: 20px;
}

.galleryParentHome {
    margin-top: 10px;
}

.galleryChildHome {
    padding: 15px;
}

.articleParent {
    display: flex;
  }

.galleryHeadline {
    margin-left: 15px;
}

.galleryTitle {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    margin: 0 5px 0 0;
}

.galleryLink {
    padding-left: 30px;
    text-decoration: none;
    color: #00695C;
    font-family: 'Space Mono', monospace;
    font-weight: 300;
}

.galleryLink:hover {
    text-decoration: underline;
}

.profileContent {
    display: flex;
    height: 100%;
    background-color: #fafafa;
    border-radius: 20px;
    border: 4px dotted #ebeced;
}

.profileImg {
    margin: 0 20px 0 0 ;
    width: 100px;
}

.profileDescription {
    width: 66%;
    padding: 40px;
}

.profileBioTitle {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    margin: 20px auto;
    font-weight: 100;
}

.profileBio {
    margin: 5px 0;
    font-weight: 300;
    font-size: 16px;
    line-height: 28px;
}

.contactButton {
    padding: 10px 20px;
    text-decoration: none;
    color: #00695C;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    background-color: #333333;
    color: #bdbdbd;
    border-radius: 4px;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.25);
    transition: var(--ui-transition);
}

.contactButton:hover {
    color: #fff;
    background-color: #444;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
}

.bottomNav {
    float: right;
    padding: 30px 30px;
}

.mySignature {
    position: fixed;
    width: auto;
    bottom: 0;
    left: 0;
    text-align: left;
    font-size: 8px;
    font-weight: 100;
    padding: 5px 15px;
    color: #333;
    pointer-events: none;
    transition: var(--ui-transition);
}

.mySignature:hover {
    cursor: pointer;
    color: #666;
}

.signatureLink {
    text-decoration: none;
    color: #666;
    pointer-events: auto;
}

.lastBio {
    display: flex;
}

/* On screens that are 1600px wide or more, top-nav displays flex 
@media screen and (min-width: 1600px) {
    .mainImg {
    max-height: 1200px;
    }

} */

/* On screens that are 720px wide or more, top-nav displays flex */
@media screen and (min-width: 720px) {
    .header {
    height: 100px;
  }

  .headerHomepage {
    max-width: 1440px;
    margin: 0 auto;
  }

  .headerYears {
    max-width: 1440px;
    margin: 0 auto;
  }

  

  .siteTitle {
    width: 20%;
    padding: 20px 20px 0 36px;
  }

  .modalTitle {
    width: 50%;
    padding: 0 0 0 30px;
  }

   .topNav {
    display: flex;
    padding: 36px;
  }

  .topNavYears {
    display: flex;
    padding: 16px;
  }

  .navLink {
    font-size: 16px;
    margin: 0 0 0 16px;
  }

  .navLinkSelected {
    font-size: 16px;
    margin: 0 0 0 16px;
  }

  .navLinkYear {
    font-size: 13px;
    margin: 0 0 0 16px;
  }

  .navLinkYearSelected {
    font-size: 13px;
    margin: 0 0 0 16px;
  }

  li {
    list-style-type: none;
    margin-bottom: 0px;
  }

  .mainImgDescription {
    font-size: 14px;
    }

    .galleryChild {
    padding: 40px;
    }

}
/* On screens that are 600px wide or more, top-nav displays flex */
@media screen and (min-width: 600px) {
  
  .heroImage {
    margin: 0px auto;
    padding: 16px;
    max-width: 720px;}
    

  .galleryParent {
    width: 33%;
  }

  .galleryParentHome {
    display: flex;
  }

  .galleryChildHome {
    padding: 15px;
    width: 33%;
  }

  .centralContent {
    margin: 150px auto 0 auto;
  }

  .centralContentBio {
    max-width: 900px;
    margin: 150px auto 150px auto;
    padding: 30px;
  }

  .profileImg {
    margin: 0 30px 0 0 ;
  }

  .heroImage {
    margin: 0px auto;
    padding: 0;
  }

  /*
  .topNav {
    animation: moveFromRight 1s ease-out;
  }
  */

  .footerLink {
    font-size: 16px;
    margin: 20px;
}

}


/*Gallery Page*/
.pageTitle {
    font-size: 24px;
    margin: 50px 0;
    text-align: center;
    width: 100%;
    font-weight: 500;
    animation: fadeIn 0.6s ease-out;
}

.galleryContainer {
    margin: 10px 10px 150px 10px;
    animation: moveFromBottom 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* On screens that are 600px wide or more, top-nav displays flex */
@media screen and (min-width: 600px) {
    .pageTitle {
    font-size: 32px;
    margin: 100px 0;
    }
    .galleryContainer {
    display: flex;
    margin: 40px 40px 150px 40px;
    }
}

/*Bio Page*/
.bioContainer {
    max-width: 720px;
    margin: 100px auto 100px auto;
    padding: 30px;
    border-radius: 8px;
    animation: moveFromBottom 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.bioSubTitle {
    margin-top: 100px;
}

.mostraContainer {
    padding: 15px 0 15px 0;
    border-radius: 8px;
}

/* On screens that are 600px wide or more, top-nav displays flex */
@media screen and (min-width: 600px) {
    .bioContainer {
    margin: 150px auto 150px auto;
    padding: 30px;
  }
}

/*Contact Page*/
.contactContainer {
    max-width: 500px;
    margin: 100px auto 100px auto;
    padding: 15px;
    animation: moveFromBottom 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.contactText {
    font-weight: 400;
    font-size: 18px;
    margin-top: 0;
    padding: 15px 20px;
    background-color: #111;
    border-radius: 4px;
}

.contactText:hover {
    font-weight: 400;
    font-size: 18px;
    margin-top: 0;
    padding: 15px 20px;
    background-color: #000;
    border-radius: 4px;
    color: #fff;
}


/* On screens that are 600px wide or more, top-nav displays flex */
@media screen and (min-width: 600px) {

.contactText {
    font-size: 28px;
}

.contactText:hover {
    font-size: 28px;
}

}

/*Painting Page*/

.paintingContainer {
    padding: 0 15px 15px 15px;
    animation: fadeIn 2s;
}

.paintingContainerCenter {
    padding: 0 15px 15px 15px;
    text-align: center;
    animation: fadeIn 2s;
}

.paintingImg {
    margin: 0 auto;
    max-height: 1000px;
    width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.detailImg {
    margin: 40px auto 20px auto;
    border-radius: 100%;
    width: 100%;
}

.backContainer {
    margin: 40px 0px 10px 15px;
}

.backLink {
    padding: 5px 10px;
    text-decoration: none;
    color: #bdbdbd;
    font-family: 'Space Mono', monospace;
    font-weight: 300;
    font-size: 16px;
    background-image: linear-gradient(180deg,transparent 0%, #333 0);
    border-radius: 4px;
    transition: var(--ui-transition);
}

.backLink:hover {
    background-image: linear-gradient(180deg,transparent 0%,#444 0);
    cursor: pointer;
    color: #fff;
}

.paintingDetailsContainer {
    display: flex;
    margin: 0 5px 100px 5px;
}

.paintingDetail {
    width: 50%;
    padding: 10px;
}

.paintingTitle {
    margin: 10px 0 0 0;
    font-weight: 500;
    font-size: 18px;
    color: #BDBDBD;
    font-family: 'Space Mono', monospace;
}

.paintingDescriptionContainer {
    margin: 0 auto;
    max-width: 600px;
}

.paintingDescription {
    margin: 20px 0 20px 0;
    font-weight: 300;
    font-size: 14px;
    color: #BDBDBD;
    letter-spacing: 1px;
    line-height: 21px;
}

.centralButton {
    margin: 100px auto;
    text-align: center;
}

.bottomButton {
    margin: 0 5px;
    padding: 10px 20px;
    text-decoration: none;
    color: #00695C;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    background-color: #333333;
    color: #bdbdbd;
    border-radius: 4px;
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.25);
    transition: var(--ui-transition);
}

.bottomButton:hover {
    color: #fff;
    background-color: #444;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
}

.closeButton {
    margin: 15px;
    float: left;
    transition: var(--ui-transition);
}

.closeButton:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 8px 0px rgba(0,0,0,0.25);
}

/* On screens that are 600px wide or more, top-nav displays flex */
@media screen and (min-width: 600px) {
    .backContainer {
        margin: 40px 0px 10px 30px;
    }

    .detailImg {
        margin: 80px auto 40px auto;
    }

    .paintingContainer {
    padding: 15px 30px;
    max-height: 1000px;
    }

    .paintingContainerCenter {
    padding: 15px 30px;
    }

    .paintingDetail {
    width: 50%;
    padding: 15px;
    }

    .paintingTitle {
    margin: 30px 0 0 0;
    font-weight: 500;
    font-size: 32px;
    color: #BDBDBD;
    }

    .paintingDescription {
    margin: 40px 0 20px 0;
    font-weight: 300;
    font-size: 18px;
    color: #BDBDBD;
    letter-spacing: 1px;
    line-height: 28px;
    }

    .centralButton {
    margin: 100px auto;
    }

    .closeButton {
    margin: 30px;
    }
}

.modal {
    animation: popout 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.pressLink {
    text-decoration: none;
}

.pressLink:hover {
    text-decoration: underline;
    color: #999;
}

.titleLink {
    text-decoration: none;
    display: flex;
    transition: var(--ui-transition);
}

.titleLink:hover {
    color: #fff;
    transform: translatex(5px);
}





@keyframes moveFromTop {
    0% { transform: translateY(-8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes moveFromBottom {
    0% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes moveFromRight {
    0% { transform: translateX(1000px); opacity: 0%; }
    100% { transform: translateX(0px); opacity: 100%; }
}

@keyframes fadeIn {
    0% {opacity: 0%; }
    100% {opacity: 100%; }
}

@keyframes popout {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}







.carousel {
    position: relative; /* Remove absolute positioning */
    text-align: center;
    margin-top: 10px; /* Adjust spacing between description and dots */
    animation: fadeIn 1s ease-in-out;
  }
  
  ul.slides {
    display: block;
    position: relative;
    height: 600px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
  }
  
  .slides * {
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  
  ul.slides input {
    display: none; 
  }
  
  
  .slide-container { 
    display: block; 
  }
  
  .slide-image {
    display: block;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease-out;
  }   
  
  .slide-image > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
  }
  
  .carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    font-size: 24px;
    line-height: 600px;
    color: #999;
  }
  
  .carousel-controls label {
    display: none;
    position: absolute;
    padding: 0 20px;
    opacity: 1;
    transition: opacity 0.5s;
    cursor: pointer;
  }
  
 /* .slide-image:hover + .carousel-controls label{
    opacity: 0.5;
  }*/
  
  /*.carousel-controls label:hover {
    opacity: 1;
  }*/
  
  .carousel-controls .prev-slide {
    width: 60px;
    left: 0;
    align-items: center;
    justify-content: flex-start;
  }
  
  .carousel-controls .next-slide {
    width: 60px;
    right: 0;
    align-items: center;
    justify-content: flex-end;
  }

  .carousel-controls label img {
    display: none;
  }

  .carousel-controls label::before {
    display: block;
    width: 22px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 14px;
    line-height: 60px;
    text-align: center;
    transition: var(--ui-transition);
  }

  .carousel-controls .prev-slide::before {
    content: '‹';
    border-radius: 0 6px 6px 0;
  }

  .carousel-controls .next-slide::before {
    content: '›';
    border-radius: 6px 0 0 6px;
  }

  .carousel-controls label:hover::before {
    background: #fff;
    width: 26px;
  }
  
  .carousel-dots {
    position: relative;
    text-align: center;
    margin-top: 15px; /* Ensure spacing */
}

  
  .carousel-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 15px;
    padding: 4px 8px 10px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-thumb {
    display: inline-block;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.75;
    border: 1px solid transparent;
    transition: var(--ui-transition);
  }

  .carousel-thumb:hover {
    opacity: 1;
  }

  .carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* When a slide is selected, make its thumbnail full opacity with a border */
input:checked ~ .carousel-thumbnails label {
    opacity: 0.75;
}
  
  input:checked + .slide-container .slide-image {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity 250ms ease-out;
  }
  
  input:checked + .slide-container .carousel-controls label {
     display: flex; 
  }
  
  input#img-1:checked ~ .carousel-thumbnails label#thumb-1,
  input#img-2:checked ~ .carousel-thumbnails label#thumb-2,
  input#img-3:checked ~ .carousel-thumbnails label#thumb-3,
  input#img-4:checked ~ .carousel-thumbnails label#thumb-4,
  input#img-5:checked ~ .carousel-thumbnails label#thumb-5,
  input#img-6:checked ~ .carousel-thumbnails label#thumb-6,
  input#img-7:checked ~ .carousel-thumbnails label#thumb-7,
  input#img-8:checked ~ .carousel-thumbnails label#thumb-8,
  input#img-9:checked ~ .carousel-thumbnails label#thumb-9,
  input#img-10:checked ~ .carousel-thumbnails label#thumb-10,
  input#img-11:checked ~ .carousel-thumbnails label#thumb-11,
  input#img-12:checked ~ .carousel-thumbnails label#thumb-12,
  input#img-13:checked ~ .carousel-thumbnails label#thumb-13,
  input#img-14:checked ~ .carousel-thumbnails label#thumb-14,
  input#img-15:checked ~ .carousel-thumbnails label#thumb-15,
  input#img-16:checked ~ .carousel-thumbnails label#thumb-16,
  input#img-17:checked ~ .carousel-thumbnails label#thumb-17,
  input#img-18:checked ~ .carousel-thumbnails label#thumb-18,
  input#img-19:checked ~ .carousel-thumbnails label#thumb-19,
  input#img-20:checked ~ .carousel-thumbnails label#thumb-20 {
  opacity: 1;
  border-color: #1e293b;
  }
  
  
  input:checked + .slide-container .nav label { display: block; }
  

  .slide-description {
    width: 100%;
    padding: 20px 0;
    color: #475569;
    font-size: 13px;
    font-weight: 300;
    font-family: 'Space Mono', monospace;
    text-align: center;
    transition: opacity 250ms ease-out;
  }

  .bio-description {
    width: 100%;
    padding: 15px 0;
    color: #666;
    font-size: 14px;
    font-weight: 300;
    font-family: 'Space Mono', monospace;
    text-align: left;
    transition: opacity 250ms ease-out;
  }

  .bio-description strong {
    color: #000;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
  }



/* Media queries for responsiveness */
@media (max-width: 768px) {
    ul.slides {
      height: 350px;
    }

    .carousel-controls {
        line-height: 350px;
      }

      .carousel-controls label {
        padding: 0;
      }

      .carousel-controls label img {
        display: none;
      }
    
  }
  
  @media (max-width: 480px) {
    ul.slides {
      height: 250px;
    }

    .carousel-controls {
        line-height: 250px;  
      }

      .carousel-controls label {
        padding: 0;
      }

      .carousel-controls label img {
        display: none;
      }
  
    
  }

  /* Add a min-height for larger screens */
@media (min-width: 769px) {
    ul.slides {
      min-height: 600px;
    }
  }


  .bio {
    max-width: 720px;
    margin: 0 auto;
    padding: 15px;
  }

  .bioGroup {
    display: flex;
  }

  .bioLink {
    color: #666;
    font-size: 14px;
    font-weight: 300;
    font-family: 'Space Mono', monospace;
    text-align: left;
    transition: opacity 250ms ease-out;
  }

  .alert {
    background-color: #ebeced;
    padding: 0 20px;
    margin-bottom: 30px;
  }


 
  
  
.navIcon { display: inline-block; vertical-align: middle; line-height: 1; }
.navIcon svg { display: block; }

/* Mobile: the detail thumbnail sits in its own strip under the painting instead of covering it */
@media (max-width: 768px) {
  ul.slides:has(input:checked + .slide-container .detailBtn) { height: calc(350px + 96px); }
  ul.slides:has(input:checked + .slide-container .detailBtn) .slide-image { height: calc(100% - 96px); }
  ul.slides:has(input:checked + .slide-container .detailBtn) .detailBtn { bottom: 6px; right: 12px; }
}
@media (max-width: 480px) {
  ul.slides:has(input:checked + .slide-container .detailBtn) { height: calc(250px + 74px); }
  ul.slides:has(input:checked + .slide-container .detailBtn) .slide-image { height: calc(100% - 74px); }
  ul.slides:has(input:checked + .slide-container .detailBtn) .detailBtn { bottom: 4px; right: 10px; }
}

/* MOBILE: la linguetta "DETTAGLIO" nel lightbox è orizzontale (foto + scritta in riga),
   in basso a destra, invece di una colonna verticale sul bordo */
@media screen and (max-width: 600px) {
  .lightboxSideTab {
    top: auto;
    bottom: 14px;
    right: 12px;
    transform: none;
    flex-direction: row;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid #333;
    border-radius: 6px;
  }
  .lightboxSideTab:hover { padding-right: 10px; }
  .lightboxSideTab img { width: 38px; height: 38px; }
  .lightboxSideTab span {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 9px;
    white-space: nowrap;
  }
}

.mySignature p { color: #767676; font-size: 10px; margin: 0; }
.cookieBtn:active, .detailBtn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Contrasto: titoli e testi di servizio non più grigio chiarissimo (#BDBDBD = 1.9:1) */
.textPage h1 { color: #767676; }
.bio p { color: #767676; }
h1 { color: #767676; }

/* ===== Menu su una riga (mobile) + focus tastiera ===== */
@media screen and (max-width: 719px) {
  .siteTitle { float: none; width: auto; padding: 15px 15px 0 15px; }
  .topNav { float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px 15px 0; margin: 0; text-align: left; }
  .topNav li { margin: 0; padding: 0; }
  .navLink, .navLinkSelected { margin: 0; font-size: 14px; }
  .headerHomepage { height: auto; padding-bottom: 14px; }
}
a:focus-visible, button:focus-visible, label:focus-visible { outline: 2px solid #1e293b; outline-offset: 3px; border-radius: 2px; }

/* Carosello: radio nascosti ma raggiungibili da tastiera (frecce) */
ul.slides input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
ul.slides input:focus-visible + .slide-container .slide-image { outline: 2px solid #1e293b; outline-offset: -4px; }

/* ===== Vista a griglia (2025) ===== */
body:not(.view-slide) #slideView { display: none; }
body.view-slide #gridView { display: none; }
.viewSwitch { display: flex; justify-content: center; gap: 14px; margin: 0 0 28px; }
.viewSwitch button { background: none; border: 0; padding: 5px; line-height: 0; color: #c4c4c4; cursor: pointer; transition: color 0.2s ease; }
.viewSwitch button svg { display: block; }
.viewSwitch button[aria-pressed="true"] { color: #8a8a8a; }
@media (hover: hover) and (pointer: fine) { .viewSwitch button:hover { color: #8a8a8a; } }
.workGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; max-width: 1400px; margin: 0 auto 120px; padding: 0 12px; text-align: left; list-style: none; }
.workGrid li { margin: 0; padding: 0; }
.workCell { display: block; text-decoration: none; color: inherit; }
.workThumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.workThumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.workCap { transition: color 0.2s ease-out; }
@media (hover: hover) and (pointer: fine) { .workCell:hover .workCap { color: #000; } .workCell:hover .workCap span { color: #444; } }
.workCap { display: block; margin-top: 10px; font-family: 'Space Mono', monospace; font-size: 12px; line-height: 1.45; color: #333; }
.workCap span { display: block; color: #767676; }
@media screen and (max-width: 600px) { .workGrid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

/* ===== Pagina singola opera ===== */
.workPage { max-width: 1500px; margin: 0 auto; padding: 10px 20px 90px; }
.workBack { display: inline-block; margin-bottom: 18px; }
.workFigure { margin: 0; text-align: center; }
.workFigure img { display: block; margin: 0 auto; max-width: 100%; max-height: calc(100vh - 180px); min-height: 320px; width: auto; height: auto; object-fit: contain; }
.workInfo { margin: 26px auto 0; max-width: 620px; text-align: center; }
.workInfo h1 { margin: 0 0 10px; font-family: 'Space Mono', monospace; font-weight: 500; font-size: 20px; color: #111; }
.workMeta { margin: 0; font-family: 'Space Mono', monospace; font-size: 13px; line-height: 1.7; color: #555; }
.workDetails { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin: 64px auto 0; max-width: 820px; }
.workDetails img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; display: block; }
/* Bicharegan 5: tre dettagli piccoli, uno accanto all'altro */
.workDetails.workDetailsRow { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 16px; max-width: 1200px; }
.workDetails.workDetailsRow img { flex: 1 1 0; min-width: 0; width: 33%; max-height: 50vh; }
@media screen and (max-width: 700px) { .workDetails { max-width: 100%; } .workDetails.workDetailsRow { max-width: 100%; flex-direction: column; align-items: stretch; gap: 12px; } .workDetails.workDetailsRow img { flex: none; width: 100%; max-height: none; } }

/* ===== Frecce laterali pagina opera ===== */
.workStage { display: flex; align-items: center; justify-content: center; gap: 6px; }
.workStage .workFigure { flex: 1 1 auto; min-width: 0; }
.workArrow { flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #8a8a8a; text-decoration: none; transition: color 0.2s ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); -webkit-tap-highlight-color: transparent; }
.workArrow svg { display: block; width: 26px; height: auto; }
.workArrowGhost { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { a.workArrow:hover { color: #000; } }
a.workArrow:active { transform: scale(0.92); }
a.workArrow:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .workArrow { transition: color 0.2s ease; } a.workArrow:active { transform: none; } }
/* Mobile: le frecce stanno sotto l'immagine, mai sopra */
@media screen and (max-width: 700px) {
  .workStage { flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .workStage .workFigure { flex: 0 0 100%; order: 0; }
  .workArrow { order: 1; width: 48px; height: 44px; color: #555; margin-top: 10px; }
  .workArrow svg { width: 28px; }
  .workArrowNext { margin-left: auto; }
  .workArrowGhost { display: none; }
}

/* ===== Contact ===== */
.contactPage { max-width: 620px; margin: 0 auto; padding: 40px 24px 160px; text-align: left; }
.contactPage h1 { margin: 0 0 28px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 40px; color: #767676; }
.contactMail { margin: 0 0 20px; font-family: 'Space Mono', monospace; font-size: 22px; word-break: break-all; }
.contactMail a { color: #111; text-decoration: none; background-image: linear-gradient(180deg,transparent 88%,#333 0); }
.contactPage .editionTag { background: none; font-size: 11px; cursor: pointer; }
.contactAlt { margin: 36px 0 0; }
@media screen and (max-width: 600px) { .contactPage h1 { font-size: 30px; } .contactMail { font-size: 17px; } }

/* CONTACT: voce secondaria, visivamente piu' piccola del menu principale */
.navLink.navLinkSmall, .navLinkSelected.navLinkSmall { font-size: 12px; }
@media screen and (min-width: 720px) { .topNav { align-items: center; } }

/* ===== Frecce del carosello: accanto al quadro, a meta' altezza (posizione calcolata da lightbox.js) ===== */
.carousel-controls .prev-slide, .carousel-controls .next-slide {
  top: var(--img-mid, 300px); transform: translateY(-50%);
  width: 64px; height: 96px; padding: 0; align-items: center; line-height: 1;
}
.carousel-controls .prev-slide { left: auto; right: min(calc(100% - var(--img-l, 60px) + 8px), calc(100% - 28px)); justify-content: flex-end; }
.carousel-controls .next-slide { right: auto; left: min(calc(100% - var(--img-r, 60px) + 8px), calc(100% - 28px)); justify-content: flex-start; }
.carousel-controls label::before, .carousel-controls label:hover::before {
  width: 36px; height: 72px; line-height: 72px; font-size: 30px; color: #333;
  background: transparent; border-radius: 6px;
  transition: background-color 0.15s ease-out, transform 0.12s ease-out;
}
@media (hover: hover) and (pointer: fine) { .carousel-controls label:hover::before { background: #f1f2f4; } }
.carousel-controls label:active::before { transform: scale(0.94); }
@media (max-width: 768px) {
  .carousel-controls .prev-slide, .carousel-controls .next-slide { width: 40px; height: 72px; top: var(--img-mid, 175px); }
  .carousel-controls label::before, .carousel-controls label:hover::before { width: 26px; height: 56px; line-height: 56px; font-size: 24px; }
}

/* ===== Intestazione mobile: menu sotto il banner, nome sotto il menu (solo telefono) ===== */
@media screen and (max-width: 719px) {
  .headerHomepage { display: flex; flex-direction: column; }
  .topNav { order: 1; padding: 8px 15px 0; }
  .siteTitle { order: 2; padding: 14px 15px 0; }
  .nameTag { font-size: 26px; }
  .smallName { font-size: 11px; margin: 4px 0 0; }
}

/* ===== Zoom nella pagina opera ===== */
.workFigure img, .workDetails img { cursor: default; }
/* Firma nascosta finche' il banner cookie e' visibile */
body.has-cookie-banner .mySignature { display: none; }

@media screen and (max-width: 700px) { .workFigure img { max-height: none; min-height: 0; width: 100%; } }
@media screen and (max-width: 700px) { .workPage { padding-left: 4px; padding-right: 4px; } }

/* ===== Nome centrato (pagine del lavoro); il menu resta a destra; la home resta a sinistra ===== */
@media screen and (min-width: 720px) {
  body.headerCenter .headerHomepage { position: relative; }
  body.headerCenter .siteTitle { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: auto; padding: 20px 0 0; text-align: center; white-space: nowrap; float: none; }
}
@media screen and (max-width: 719px) {
  body.headerCenter .siteTitle { text-align: center; }
}

/* Miniatura della slide attiva (la striscia puo' contenere decine di opere) */
.carousel-thumb.isActive { opacity: 1; border-color: #1e293b; }


/* ===== DETTAGLI: piu' grandi e sempre in colonna verticale ===== */

/* Pagina singola opera */
.workDetails,
.workDetails.workDetailsRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 40px;
  max-width: 1200px;
  margin: 72px auto 0;
}
.workDetails img,
.workDetails.workDetailsRow img {
  flex: none;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;      /* nessun tetto: il dettaglio si vede grande */
  min-width: 0;
}
@media screen and (max-width: 700px) {
  .workDetails, .workDetails.workDetailsRow { max-width: 100%; gap: 20px; margin-top: 44px; align-items: stretch; }
  .workDetails img, .workDetails.workDetailsRow img { width: 100%; }
}

/* Lightbox (pagine per anno): i dettagli si aprono come colonna scorrevole */
.lightboxStack, .lightboxClose { display: none; }
.lightbox-overlay.stacked { align-items: stretch; padding: 0; }
.lightbox-overlay.stacked > img { display: none; }
.lightbox-overlay.stacked .lightboxStack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 56px 24px 56px;
}
.lightbox-overlay.stacked .lightboxStack img {
  flex: none;
  width: auto;
  max-width: min(100%, 1500px);
  max-height: none;      /* altezza naturale: scorri per vedere la successiva */
  height: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: zoom-out;
}
.lightbox-overlay.stacked .lightboxClose {
  display: block;
  position: fixed;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #222;
  font-size: 26px;
  line-height: 40px;
  padding: 0;
  cursor: pointer;
  z-index: 100002;
}
@media screen and (max-width: 600px) {
  .lightbox-overlay.stacked .lightboxStack { padding: 56px 8px 40px; gap: 16px; }
  .lightbox-overlay.stacked .lightboxStack img { width: 100%; }
}

/* Con il lightbox aperto l'header della pagina non deve trasparire sopra le foto */
body.lightbox-open .headerHomepage,
body.lightbox-open .showBanner { visibility: hidden; }

/* ===== Testi: pulsanti IT / EN ===== */
.langSwitch { display: flex; gap: 6px; margin: 0 0 26px; }
.langSwitch button { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.05em; background: none; border: 1px solid #cfcfcf; border-radius: 20px; padding: 3px 13px; color: #767676; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.langSwitch button[aria-pressed="true"] { color: #fff; background: #333; border-color: #333; }
@media (hover: hover) and (pointer: fine) { .langSwitch button[aria-pressed="false"]:hover { color: #111; border-color: #333; } }
.textBody[hidden] { display: none; }

/* ===== Pagina opera: foto a schermo intero ===== */
.zoomOverlay { display: none; position: fixed; inset: 0; z-index: 99999; background: #fff; }
.zoomOverlay.active { display: block; }
.zoomScroll { position: absolute; inset: 0; overflow: auto; display: flex; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.zoomImg { display: block; margin: auto; flex: none; width: auto; height: auto; max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; cursor: zoom-in; }
.zoomOverlay.isFull .zoomImg { max-width: none; max-height: none; cursor: zoom-out; }
.zoomClose { position: fixed; top: 10px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,0.78); color: #fff; font-size: 26px; line-height: 40px; padding: 0; cursor: pointer; z-index: 100000; }
@media (hover: hover) and (pointer: fine) { .zoomClose:hover { background: #000; } }

/* Elenco testi: pulsanti lingua + nota */
.langSwitchList { align-items: center; margin: 4px 0 30px; }
.langNote { margin-left: 10px; font-family: 'Space Mono', monospace; font-size: 11px; color: #767676; }
