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

body {
    background: #f5f1eb;
    color: #4a3c31;
    font-family: 'Manrope', sans-serif;
}

/* ================ PERSONALIZZAZIONE SCROLLBAR ================ */

/* Per i browser moderni (Firefox) */
html {
    scrollbar-width: thin;
    scrollbar-color: #C5A059 #201F1A;

    scroll-behavior: smooth;
}

/* Per i browser basati su WebKit/Chromium (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Sfondo del binario della scrollbar */
::-webkit-scrollbar-track {
    background: #201F1A;
}

/* La barra di scorrimento vera e propria */
::-webkit-scrollbar-thumb {
    background-color: #C5A059;
    border-radius: 2px;
    border: 2px solid #201F1A;
}

/* Effetto al passaggio del mouse sulla barra */
::-webkit-scrollbar-thumb:hover {
    background-color: #D4B06E;
}

/* =========== HEADER + NAV ============ */

/* header principale */
.main-header {
    background: #202020;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(12, 11, 10, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Area Logo */
.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin-bottom: 10px;
    color: rgba(251, 250, 246, 0.82);
}

.brand-name span {
    color: #C5A059;
}

.brand-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(251, 250, 246, 0.60);
    opacity: 0.7;
    margin-top: -5px;
}

/* Menu di navigazione */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(251, 250, 246, 0.82);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #C5A059;
}

/* Pulsante Contattami */
.btn-call {
    background: #C5A059;
    color: #2D2D2D;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-call:hover {
    background: #D4B06E;
}

.fa-solid {
    font-size: 16px;
}

/* ============ GALLERIA RENDER ========== */

.gallery-section {
    padding: 120px 6%;
    background: #FBFAF6;
}

.gallery-heading {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

.gallery-heading h2 {
    margin: 0 0 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    font-weight: 500;
    line-height: 1.1;
    color: #2D2D2D;
}

.gallery-heading p {
    margin: 0;
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #4A4744;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid #E6DDCA;

    cursor: pointer;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 5 / 4;

    overflow: hidden;
    background: #F3EDE1;
    position: relative;
}

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

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(32, 31, 26, .70),
            rgba(32, 31, 26, .15),
            transparent);
}

.gallery-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 2;
}

.gallery-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #FBFAF6;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Overlay */
.lightbox {

    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(32, 31, 26, .95);

    opacity: 0;
    visibility: hidden;

    transition: .35s;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {

    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    transform: scale(.9);
    transition: .35s;
}

.lightbox.active img {
    transform: scale(1);
}

/* X */

.lightbox-close {

    position: absolute;

    top: 35px;
    right: 35px;

    width: 55px;
    height: 55px;

    border: none;
    background: none;

    color: #FBFAF6;
    font-size: 34px;

    cursor: pointer;
    transition: .3s;
}

.lightbox-close:hover {
    color: #C5A059;
}

.gallery-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.03)
}

/* VIDEO FINALE */
.gallery-video {

    padding: 120px 0 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    margin-bottom: 70px;
}

.gallery-video .gallery-label {
    color: #AC8D5D;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.gallery-video h2 {

    margin: 0 0 40px;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    color: #2D2D2D;
}

.gallery-video video {

    width: min(1000px, 100%);
    border: 1px solid #E6DDCA;
    background: #201F1A;
}

/* Bottone Visualizza Render */
.render-action-wrapper {
    grid-column: span 12;
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

/* Stile del Bottone "Visualizza tutti" */
.btn-turn-back {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2D2D2D;
    text-decoration: none;
    padding: 14px 36px;
    border: 1px solid #2D2D2D;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Effetto Hover elegante */
.btn-turn-back:hover {
    background-color: #2D2D2D;
    color: #FBFAF6;
    border-color: #2D2D2D;
}

/* ================ FOOTER ================ */
.site-footer {
    background-color: #201F1A;
    /* Sfondo scuro unito alla sezione precedente */
    padding: 90px 0 40px 0;
    color: rgba(251, 250, 246, 0.82);
    border-top: 1px solid rgba(230, 221, 202, 0.08);
}

.footer-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Distribuzione delle due macro-colonne */
.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 60px;
}

/* Stili Colonna Sinistra (Brand) */
.footer-brand-col {
    max-width: 360px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: rgba(251, 250, 246, 0.9);
    margin-bottom: 5px;
}

.footer-tagline {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #AC8D5D;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer-brand-col .footer-description {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(251, 250, 246, 0.50);
}

/* Stili Colonna Destra (Contatti & Info accorpati) */
.footer-contacts-col {
    max-width: 400px;
    text-align: right;
}

.footer-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(251, 250, 246, 0.82);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(251, 250, 246, 0.50);
    margin-bottom: 6px;
}

.footer-links-list a {
    color: rgba(251, 250, 246, 0.50);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: #C5A059;
}

/* Dettagli tecnici e indirizzo dello studio */
.footer-address {
    color: rgba(251, 250, 246, 0.65) !important;
    margin-top: 15px;
}

.footer-meta {
    font-size: 12px !important;
    opacity: 0.8;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    margin-left: 12px;
    font-size: 16px;
    color: #ffffff;
    transition: 0.3s ease;

    text-decoration: none;
}

.footer-social a:hover {
    color: #C5A059;
    transform: translateY(-2px);
}

/* Riga Inferiore (Copyright e Link Legali) */
.footer-bottom-row {
    border-top: 1px solid rgba(230, 221, 202, 0.08);
    padding-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(251, 250, 246, 0.40);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal a {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(251, 250, 246, 0.40);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #C5A059;
}

.footer-legal .separator {
    color: rgba(251, 250, 246, 0.20);
}