
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f8f6;
    color: #171717;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(248, 248, 246, 0.96);
    border-bottom: 1px solid #e5e5e2;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1500px;
    margin: auto;
    padding: 0 6%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span,
.footer-logo span,
.section-heading h2 span,
.contact-section h2 span {
    color: #888;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.main-nav a {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #555;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: #000;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 7px;
    width: 24px;
    height: 1px;
    background: #111;
    transition: transform .25s ease;
}

.menu-toggle span:first-child {
    top: 14px;
}

.menu-toggle span:last-child {
    top: 22px;
}

.menu-toggle.active span:first-child {
    top: 18px;
    transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
    top: 18px;
    transform: rotate(-45deg);
}


/* INTRO */

.intro {
    max-width: 1500px;
    min-height: 570px;
    margin: auto;
    padding: 105px 10% 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: #888;
    font-weight: 600;
}

.intro h1 {
    margin-top: 35px;
    font-size: clamp(60px, 9vw, 130px);
    line-height: .92;
    letter-spacing: -8px;
    font-weight: 500;
}

.intro h1 span {
    color: #999;
}

.intro-description {
    max-width: 360px;
    margin-top: 35px;
    color: #777;
    font-size: 18px;
    line-height: 1.8;
}

.intro-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dededb;
    padding-top: 18px;
    margin-top: 90px;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #888;
}


/* GALLERY */

.gallery-section {
    max-width: 1500px;
    margin: auto;
    padding: 110px 6% 90px;
    scroll-margin-top: 75px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -2px;
    margin-top: 12px;
}

.photo-count {
    font-size: 11px;
    color: #888;
    padding-bottom: 8px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.photo-item {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border: none;
    background: #e8e8e5;
    cursor: pointer;
    padding: 0;
}

.photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform .5s ease, filter .4s ease;
}

.photo-item:hover img {
    transform: scale(1.04);
    filter: grayscale(100%) contrast(1.1);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    display: flex;
    align-items: end;
    justify-content: end;
    padding: 15px;
    opacity: 0;
    transition: opacity .3s ease;
}

.photo-overlay span {
    color: white;
    font-size: 9px;
    letter-spacing: 1px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.empty-gallery {
    padding: 80px 20px;
    text-align: center;
    border: 1px solid #e5e5e2;
}

.empty-gallery p {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-gallery span {
    color: #888;
    font-size: 12px;
}


/* PAGINATION */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 65px;
    min-height: 40px;
}

.pagination a {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #777;
    border: 1px solid #dededb;
    transition: .2s ease;
}

.pagination a:hover,
.pagination a.active {
    color: white;
    background: #171717;
    border-color: #171717;
}


/* PROFILE */

.profile-section {
    background: #ededeb;
    padding: 120px 12%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    scroll-margin-top: 75px;
}

.profile-content h2 {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 45px;
}

.profile-content h2 span,
.vision-title h2 span {
    color: #999;
}

.profile-content p,
.vision-text p {
    max-width: 570px;
    color: #666;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 20px;
}


/* VISION */

.vision-section {
    max-width: 1500px;
    margin: auto;
    padding: 130px 12%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    scroll-margin-top: 75px;
}

.vision-title h2 {
    margin-top: 25px;
    font-size: clamp(50px, 7vw, 90px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -5px;
}


/* CONTACT */

.contact-section {
    background: #171717;
    color: white;
    padding: 120px 12%;
    scroll-margin-top: 75px;
}

.contact-section .eyebrow {
    color: #999;
}

.contact-section h2 {
    font-size: clamp(55px, 8vw, 105px);
    font-weight: 500;
    letter-spacing: -6px;
    margin: 30px 0;
}

.contact-section > p:not(.eyebrow) {
    max-width: 400px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.contact-link {
    display: inline-block;
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 1px solid #777;
    font-size: 13px;
}


/* FOOTER */

.site-footer {
    min-height: 90px;
    padding: 25px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #777;
}

.footer-logo {
    font-size: 24px;
    color: #171717;
    font-weight: 800;
    letter-spacing: -2px;
}

.site-footer > a:last-child {
    color: #171717;
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border: none;
    padding: 0;
    background: #080808;
    color: white;
    overflow: hidden;
}

.lightbox::backdrop {
    background: #080808;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 55px 45px;
}

.photo-frame {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

#lightboxImage {
    display: block;
    max-width: min(88vw, 1300px);
    max-height: calc(100dvh - 110px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: -17px;
    right: -17px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f8f8f6;
    color: #111;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-side {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.left-side {
    left: 0;
    cursor: w-resize;
}

.right-side {
    right: 0;
    cursor: e-resize;
}

.lightbox-caption {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    color: #aaa;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
}


/* TABLET */

@media (max-width: 1100px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intro {
        min-height: 520px;
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .header-inner {
        height: 65px;
        padding: 0 6%;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .main-nav {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #f8f8f6;
        border-bottom: 1px solid #dededb;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 6% 20px;
        z-index: 1001;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 15px 0;
        border-bottom: 1px solid #e8e8e5;
    }

    .intro {
        min-height: 490px;
        padding: 90px 7% 35px;
    }

    .intro h1 {
        font-size: clamp(58px, 15vw, 90px);
        letter-spacing: -4px;
    }

    .intro-description {
        font-size: 13px;
    }

    .intro-meta {
        font-size: 8px;
        margin-top: 65px;
    }

    .gallery-section {
        padding: 80px 5% 70px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .photo-overlay {
        display: none;
    }

    .pagination {
        margin-top: 45px;
    }

    .profile-section {
        padding: 80px 8%;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .profile-content h2 {
        font-size: 43px;
        margin-bottom: 30px;
    }

    .vision-section {
        padding: 90px 8%;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vision-title h2 {
        font-size: 65px;
    }

    .contact-section {
        padding: 85px 8%;
    }

    .contact-section h2 {
        font-size: 60px;
        letter-spacing: -4px;
    }

    .site-footer {
        padding: 25px 6%;
        flex-wrap: wrap;
        font-size: 8px;
    }

    .lightbox-content {
        padding: 55px 12px;
    }

    #lightboxImage {
        max-width: 94vw;
        max-height: calc(100dvh - 110px);
    }

    .lightbox-close {
        top: -15px;
        right: -5px;
    }

    .lightbox-caption {
        font-size: 8px;
        bottom: -25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
/* SUGGERIMENTO LIGHTBOX */

.photo-hint {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 15px;

    color: rgba(255,255,255,.65);
    font-size: 9px;
    letter-spacing: 2px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

.photo-hint span {
    font-size: 14px;
}

.photo-hint.visible {
    opacity: 1;
}

@media (max-width: 700px) {
    .photo-hint {
        bottom: -55px;
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}



/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    width: min(900px, calc(100% - 30px));
    background: #fff;
    color: #171717;
    padding: 28px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
    z-index: 99999;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-label {
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    font-weight: bold;
    color: #777;
    margin-bottom: 10px;
}

.cookie-text h3,
.cookie-modal-content h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.cookie-text p,
.cookie-modal-content > p {
    font-size: 12px;
    line-height: 1.7;
    color: #666;
    max-width: 480px;
}

.privacy-link {
    display: inline-block;
    margin-top: 10px;
    color: #111;
    font-size: 11px;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 145px;
}

.cookie-button {
    padding: 12px 18px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.cookie-button.primary {
    background: #111;
    color: #fff;
}

.cookie-button:hover {
    background: #444;
    color: #fff;
}

.cookie-button.full {
    width: 100%;
    margin-top: 20px;
}

/* COOKIE MODAL */

.cookie-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.65);
    z-index: 100000;
    padding: 15px;
}

.cookie-modal-content {
    position: relative;
    width: min(480px, 100%);
    background: white;
    padding: 35px;
    border-radius: 6px;
}

.cookie-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cookie-option strong {
    font-size: 12px;
}

.cookie-option p {
    margin-top: 5px;
    color: #777;
    font-size: 11px;
}

.cookie-option input {
    width: 18px;
    height: 18px;
    accent-color: #111;
}

.always-active {
    font-size: 10px;
    color: #777;
    white-space: nowrap;
}

[hidden] {
    display: none !important;
}

/* MOBILE */

@media(max-width: 600px) {

    .cookie-banner {
        bottom: 10px;
        padding: 20px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-actions .primary {
        grid-column: 1 / -1;
    }

    .cookie-modal-content {
        padding: 25px 20px;
    }

}



/* FOOTER LEGALE */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #888;
    font-size: 10px;
    letter-spacing: 1px;
}

.footer-legal {
    display: flex;
    gap: 10px;
}

.footer-legal a {
    display: inline-block;
    padding: 10px 15px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 3px;
    text-decoration: none;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: .25s;
}

.footer-legal a:hover {
    background: #fff;
    color: #111;
}

@media (max-width: 600px) {

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        width: 100%;
        flex-wrap: wrap;
    }

    .footer-legal a {
        flex: 1;
        text-align: center;
    }

}
