@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Mrs+Saint+Delafield&display=swap');

:root {
    --primary: #FFE719;
    --primary-hover: #E6CF15;
    --primary-soft: #FFF6A3;

    --bg-main: #FFFFFF;
    --bg-secondary: ##FAFAF5;
    --bg-card: #FFFFFF;
    --bg-alt: #EFEFE8;

    --text-main: #111111;
    --text-secondary: #2B2B2B;
    --text-muted: #5A5A5A;
    --text-disabled: #8C8C8C;
    --text-white: #FFFFFF;

    --border-light: #E5E5DC;
    --font-base: "Inter", sans-serif;
    --radius-small: 6px;
    --radius-big: 12px;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Navigation */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    padding: 18px 3%;
}

.site-navbar {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1500px;
    min-height: 58px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-big);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-brand,
.nav-link {
    color: inherit;
    text-decoration: none;
}

.nav-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.nav-link-line {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
}

.nav-link.is-active .nav-link-line {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 7px 0;
    background: currentColor;
}

/* Tipografia */
h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 400;
}

h3 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 400;
}

h4 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 400;
}

h5 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
}

h6 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
}

p {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    font-family: var(--font-base);
}

ol,
ul {
    margin-block-start: 24px;
    padding-inline-start: 20px;
}

li {
    font-weight: 300;
}

.center-text {
    text-align: center;
}

.main-title {
    margin: 0;
    line-height: 0.6;
    font-size: 120px;
    font-weight: 400;
    font-family: "Mrs Saint Delafield", cursive;
}

/* bottoni e link */
.btn {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: var(--primary);
    color: var(--text-main);
    border: solid 1px var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
    border: solid 1px var(--primary-hover);
}

.btn-2 {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 34px;
    background-color: var(--bg-main);
    color: var(--text-main);
    border: solid 1px var(--bg-main);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-2:hover {
    background: none;
    color: var(--text-main);
    border: solid 1px var(--text-main);
}

.hyperlink {
    text-decoration: none;
    color: var(--primary-hover);
    font-weight: 300;
}

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


/* margini */
.top-margin {
    margin-top: 56px;
}

.top-margin-small {
    margin-top: 6px;
}

.top-margin-mid {
    margin-top: 12px;
}

.top-margin-large {
    margin-top: 24px;
}

.top-margin-xl {
    margin-top: 36px;
}

/* STACK SYSTEM */
.stack-small>*+* {
    margin-top: 0.5rem;
}

.stack-mid>*+* {
    margin-top: 1rem;
}

.stack-large>*+* {
    margin-top: 1.5rem;
}

.stack-xl>*+* {
    margin-top: 2.5rem;
}

.stack-xxl>*+* {
    margin-top: 4rem;
}

.stack-xxxl>*+* {
    margin-top: 6rem;
}



/* Color */
.main-text-color {
    color: var(--text-main);
}

.light-color {
    color: var(--text-white);
}

.primary-color {
    color: var(--primary);
}

.primary-hover-color {
    color: var(--primary-hover);
}

.bg-1 {
    background-color: var(--bg-main);
}

.bg-2 {
    background-color: var(--bg-secondary);
}

.bg-alternative {
    background-color: var(--bg-alt);
}


/* Layout */
section {
    padding: 110px 12% 95px 12%;
}

.standard-lateral-padding {
    padding: 0px 12% 0px 12%;
}

.fullwidth {
    width: 100%;
}

.fullheight {
    min-height: 100vh;
}

.center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.card {
    background-color: var(--bg-card);
    color: var(--light-text-color);
    padding: 45px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.03),
        0 10px 20px rgba(0, 0, 0, 0.05);
}


/* Hero section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(/images/hero.avif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-height {
    min-height: 80vh
}

.home-photos {
    width: 100%;
}

.scrolling-home-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.left-column {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100svh;
    padding: 110px 24% 95px 24%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-column {
    position: relative;
    align-self: start;
}

.scrolling-images {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: var(--text-white);
}

.scrolling-image-1,
.scrolling-image-2,
.scrolling-image-3 {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.scrolling-image-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.4)), url(/images/villa-1.avif);
    z-index: 2;
}

.scrolling-image-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.4)), url(/images/villa-2.avif);
    z-index: 3;
}

.scrolling-image-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.4)), url(/images/villa-3.avif);
    z-index: 4;
}

.section-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(/images/villa-3.avif);
    color: var(--text-white);
    min-height: 90vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.section-3 h3 {
    font-size: 68px;
    font-weight: 700;
}

.gallery-section {
    text-align: center;
}

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

.gallery-thumbnail {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: none;
    cursor: pointer;
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-thumbnail:hover img,
.gallery-thumbnail:focus-visible img {
    transform: scale(1.04);
}

.gallery-thumbnail:focus-visible,
.gallery-close:focus-visible,
.gallery-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.gallery-open {
    border: 0;
}

.gallery-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 32px 72px;
    border: 0;
    background: rgba(10, 10, 10, 0.96);
    color: var(--text-white);
}

.gallery-lightbox[open] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-lightbox-content {
    display: flex;
    min-width: 0;
    height: 100%;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    object-fit: contain;
}

.gallery-counter {
    font-size: 14px;
}

.gallery-close,
.gallery-control {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 28px;
    z-index: 1;
    padding: 6px 12px;
    font-size: 42px;
    line-height: 1;
}

.gallery-control {
    padding: 16px;
    font-size: 56px;
    line-height: 1;
}

body.lightbox-open {
    overflow: hidden;
}

.contact-section {
    align-items: center;
}

.contact-card {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    color: var(--text-main);
}

.contact-form label {
    display: block;
    font-weight: 500;
}

.contact-period {
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-period legend {
    width: 100%;
    margin-bottom: 10px;
    padding: 0;
    font-weight: 500;
    grid-column: 1 / -1;
}

.contact-form input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 15px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    background: var(--bg-main);
    color: var(--text-main);
    font: inherit;
    line-height: 1.25;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input[type="date"] {
    color-scheme: light;
}

.contact-form input[type="date"]::-webkit-date-and-time-value {
    min-height: 20px;
    margin: 0;
    text-align: left;
}

.contact-form input[type="date"]::-webkit-calendar-picker-indicator {
    width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0;
    cursor: pointer;
    opacity: 0.65;
}

.contact-form input:focus {
    border-color: var(--text-main);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form-success,
.form-errors {
    padding: 16px;
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
}

.form-errors ul {
    margin-bottom: 0;
}


/* footer */
footer {
    padding: 150px 12% 40px 12%;
    background-image: url(/images/villa-1.avif);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}





.gap-footer {
    gap: 450px;
}

@media (max-width: 860px) {
    .site-header {
        padding: 12px 4%;
    }

    .site-navbar {
        min-height: 54px;
        padding: 0 14px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: flex;
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border-radius: var(--radius-big);
        background: var(--bg-main);
        color: var(--text-main);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    }

    .gsap-ready .nav-menu {
        visibility: hidden;
        opacity: 0;
    }

    .nav-link {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    section, footer {
        padding: 80px 6% 70px 6%;
    }

    footer {
        text-align: center;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    h6 {
        font-size: 15px;
    }

    p {
        font-size: 15px;
    }

    small {
        font-size: 13px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-grid-mobile-12 .gallery-thumbnail:nth-child(n + 13) {
        display: none;
    }

    .gallery-lightbox {
        padding: 60px 12px 24px;
    }

    .gallery-lightbox[open] {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .gallery-control {
        padding: 8px;
        font-size: 42px;
    }

    .hero-title {
        font-size: 42px;
    }

    .card {
        padding: 30px;
    }

    .contact-period {
        grid-template-columns: 1fr;
    }

    .contact-period legend {
        grid-column: auto;
    }

    .btn,
    .btn-2 {
        font-size: 15px;
    }

    .mobile-fullwidth {
        width: 100%;
    }

    .standard-lateral-padding {
        padding: 0px 6% 0px 6%;
    }

    .scrolling-home-section {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .left-column {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 80px 6% 70px;
    }

    .contact-card {
        justify-self: stretch;
    }

    .main-title {font-size: 84px;}
}
