@font-face {
    font-family: 'Necto Mono';
    src: url('../fonts/NectoMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Necto Mono', 'Courier New', monospace;
    background-color: #D7D5D5;
    color: #333;
}

.header {
    padding: 30px 80px 20px 204px;
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    top: 30px;  
}

.header a {
    color: #6B6B6B;
    text-decoration: none;
    font-size: 13px;
    font-weight: 20;
    transition: opacity 0.3s;
}

.header a:hover {
    opacity: 0.6;
}

.name {
    font-size: 13px;
    font-weight: 20;
    color: #6B6B6B;
}

sup {
    font-size: 8px;
    vertical-align: super;
    letter-spacing: 0.6em;
    -webkit-text-stroke: 0.5px;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 100px);
    padding: 20px 80px 80px 80px;
}

.white-box {
    background-color: #f5f5f5;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    height: 550px;
    padding: 30px 40px;
    position: relative;
}

.text-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 40px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.text-overlay a {
    pointer-events: auto;
}

.text-links {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.text-links > div {
    line-height: 1.6;
}

.text-links a {
    color: #2200CC;
    text-decoration: none;
    font-size: 15px;
    font-weight: 50;
    letter-spacing: 0.07em;
    transition: opacity 0.2s;
}

.text-links a:hover {
    opacity: 0.7;
}

.separator {
    color: #2200CC;
    font-size: 15px;
    letter-spacing: 0.07em;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    position: relative;
}

.image-wrapper {
    position: relative;
    max-width: 380px;
    width: 100%;
    height: 490px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

/* Overlay fullscreen */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: transparent;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-overlay.active {
    visibility: visible;
    opacity: 1;
}

.fullscreen-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    padding: 40px 0;
    min-height: 100vh;
}

.fullscreen-gallery img {
    width: 500px;  /* tutte le foto larghe esattamente 800px */
    max-width: 90vw;  /* ma non più larghe del 90% su schermi piccoli */
    object-fit: contain;
    opacity: 1 !important;
}
