/* ========================================
   FONT LOCALI - CAFFE VILLA MERCEDE
======================================== */

/* DM Sans - Regular e vari pesi */
@font-face {
    font-family: 'DM Sans';
    src: url('./fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* DM Sans - Italic */
@font-face {
    font-family: 'DM Sans';
    src: url('./fonts/DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Playfair Display - Regular e vari pesi */
@font-face {
    font-family: 'Playfair Display';
    src: url('./fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display - Italic */
@font-face {
    font-family: 'Playfair Display';
    src: url('./fonts/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #171512;
    --ink2: #211e19;
    --cream: #f4f0e8;
    --paper: #ebe5d9;
    --gold: #d99b20;
    --gold2: #f0b638;
    --muted: #a8a094;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
    --max: 1280px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

.announcement {
    height: 30px;
    padding: 0 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gold);
    color: #1a1711;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px
}

.site-header {
    height: 86px;
    padding: 0 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(23, 21, 18, .97);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.brand img {
    display: block;
    width: 245px;
    max-height: 66px;
    object-fit: contain
}

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

.main-nav>a:not(.nav-cta) {
    font-size: 11px;
    color: #d6d0c5;
    transition: color .2s
}

.main-nav>a:hover {
    color: var(--gold2)
}

.language {
    border: 1px solid #5d5549;
    background: none;
    color: var(--cream);
    padding: 7px 9px;
    font-size: 10px;
    cursor: pointer
}

.nav-cta {
    font-size: 11px;
    background: var(--gold);
    color: #1a1711;
    padding: 13px 18px;
    font-weight: 700
}

.nav-cta span {
    padding-left: 12px
}

.menu-toggle {
    display: none
}

.hero {
    height: min(760px, calc(100vh - 116px));
    min-height: 610px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #201b14
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url('img/varie/interno.png') center 45%/cover no-repeat;
    filter: brightness(.65) saturate(.8);
    transform: scale(1.015);
    animation: heroZoom 14s ease-out both
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 13, 11, .91) 0%, rgba(14, 13, 11, .68) 44%, rgba(14, 13, 11, .15) 100%), linear-gradient(0deg, rgba(14, 13, 11, .65), transparent 35%)
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(var(--max), 89%);
    margin: 0 auto;
    padding-bottom: 45px
}

.eyebrow,
.overline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--gold2)
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px
}

.eyebrow i {
    width: 27px;
    height: 1px;
    background: var(--gold2)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

.hero h1 {
    font: 600 clamp(64px, 8vw, 112px)/.99 var(--serif);
    letter-spacing: -3px;
    margin: 35px 0 22px;
    max-width: 720px
}

.hero h1 em,
h2 em {
    font-weight: 500;
    color: var(--gold2)
}

.hero-copy {
    max-width: 390px;
    color: #ded8cd;
    line-height: 1.8;
    font-size: 14px
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 36px
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 35px;
    padding: 17px 21px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: transform .2s, background .2s
}

.button:hover {
    transform: translateY(-3px)
}

.button-gold {
    background: var(--gold);
    color: #19150f
}

.button-gold:hover {
    background: var(--gold2)
}

.button span {
    font-size: 16px
}

.text-link {
    font-size: 11px;
    color: #eee7dc
}

.text-link span {
    color: var(--gold2);
    margin-left: 10px
}

.hero-bottom {
    position: absolute;
    bottom: 26px;
    left: 5.5%;
    right: 5.5%;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #d0c8bb
}

.scroll-cue {
    position: absolute;
    right: 5.5%;
    bottom: 45%;
    border: 1px solid rgba(255, 255, 255, .4);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 18px
}

.section-pad {
    padding: 30px max(5.5%, calc((100% - var(--max))/2))
}

.intro {
    background: var(--cream);
    color: var(--ink)
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #877e70;
    font-size: 9px;
    letter-spacing: 1.7px
}

.section-kicker b {
    color: var(--gold);
    font-weight: 700
}

.line {
    height: 1px;
    background: #d5cec1;
    flex: 1
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 12%;
    padding: 68px 0 58px
}

.overline {
    margin-bottom: 20px
}

.intro h2,
.section-heading h2,
.gallery-head h2,
.services h2,
.visit h2,
.menu-band h2 {
    font: 600 clamp(42px, 5.2vw, 67px)/1.08 var(--serif);
    letter-spacing: -1.5px;
    margin: 0
}

.intro h2 em,
.section-heading h2 em,
.gallery-head h2 em,
.services h2 em {
    color: #b47a13
}

.intro-text {
    align-self: end;
    max-width: 460px;
    padding-bottom: 4px
}

.intro-text p,
.section-heading>p,
.gallery-head>p {
    font-size: 14px;
    line-height: 1.9;
    color: #70695f
}

.underlink {
    display: inline-block;
    margin-top: 17px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c18a25;
    color: #7d5411;
    font-size: 11px;
    font-weight: 700
}

.underlink span {
    margin-left: 20px
}

.intro-photo {
    height: 430px;
    position: relative;
    overflow: hidden
}

.intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    filter: saturate(.78)
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(23, 21, 18, .83);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.6px;
    color: #e9e0d3
}

.specialties {
    background: var(--ink);
}

.section-heading,
.gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 65px 0 48px
}

.section-heading>p,
.gallery-head>p {
    color: #aaa296;
    max-width: 300px;
    margin-bottom: 8px
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.feature-card {
    min-width: 0;
}

.feature-img {
    width: 100%;
    height: 340px;
    position: relative;
    overflow: hidden;
    background: #29251f;
}

.feature-large .feature-img {
    height: 340px;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .7s;
    filter: saturate(.85);
}

.feature-card:hover img,
.gallery-item:hover img {
    transform: scale(1.055)
}

.feature-number {
    position: absolute;
    top: 17px;
    left: 18px;
    background: var(--gold);
    color: #1b1710;
    padding: 8px 10px;
    font-size: 9px;
    font-weight: 700
}

.feature-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid #4a443b
}

.feature-info h3 {
    font: 600 25px var(--serif);
    margin: 0 0 8px
}

.feature-info p {
    font-size: 11px;
    line-height: 1.7;
    color: #a9a196;
    max-width: 290px;
    margin: 0
}

.feature-arrow {
    color: var(--gold2);
    font-size: 22px
}

.signature {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 590px;
    background: #28231c
}

.signature-image {
    min-height: 590px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #28231c;
}

.signature-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 526px;
    object-fit: contain;
    object-position: center;
    filter: saturate(.95);
}

.signature-content {
    padding: 100px 12%;
    align-self: center;
    position: relative
}

.signature-index {
    position: absolute;
    right: 12%;
    top: 95px;
    color: #8f8576;
    font-size: 9px;
    letter-spacing: 1.7px
}

.signature h2 {
    font: 600 clamp(48px, 5vw, 68px)/1.05 var(--serif);
    letter-spacing: -1.5px;
    margin: 55px 0 22px
}

.signature h2 em,
.visit h2 em,
.menu-band h2 em {
    color: var(--gold2)
}

.signature-content>p:not(.overline) {
    font-size: 13px;
    line-height: 1.9;
    color: #bdb5a9;
    max-width: 350px;
    margin-bottom: 30px
}

.button-outline {
    border: 1px solid #8e7953;
    color: var(--cream)
}

.button-outline:hover {
    background: var(--gold);
    color: #17130e
}

.gallery {
    background: var(--cream);
    color: var(--ink)
}

.gallery-head {
    margin-bottom: 48px
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 16px
}

.gallery-item {
    border: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #d7cdbd;
    text-align: left
}

.gallery-item.tall {
    grid-row: span 2
}

.gallery-item.wide {
    grid-column: span 2
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s
}

.gallery-item:after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .68))
}

.gallery-item span {
    position: absolute;
    z-index: 1;
    bottom: 17px;
    left: 19px;
    right: 19px;
    color: #fff;
    font: 500 19px var(--serif);
    display: flex;
    justify-content: space-between
}

.gallery-item b {
    font: normal 15px var(--sans);
    color: var(--gold2)
}

.menu-band {
    background: #28231c;
    padding: 90px 5.5%;
    position: relative;
    overflow: hidden
}

.menu-band:after {
    content: 'MENU';
    position: absolute;
    right: -10px;
    bottom: -90px;
    font: 700 240px var(--serif);
    color: rgba(255, 255, 255, .025);
    pointer-events: none
}

.menu-band-inner {
    max-width: var(--max);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1
}

.menu-band h2 {
    font-size: 58px
}

.menu-band-inner>div>p:last-child {
    color: #aaa196;
    font-size: 12px;
    margin: 20px 0 0
}

.services {
    background: var(--cream);
    color: var(--ink)
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12%;
    padding-top: 65px
}

.services-copy {
    font-size: 13px;
    line-height: 1.9;
    color: #756d61;
    max-width: 340px;
    margin-top: 25px
}

.service-list {
    padding-top: 8px
}

.service-row {
    display: grid;
    grid-template-columns: 45px 1fr 30px;
    align-items: center;
    padding: 19px 0;
    border-bottom: 1px solid #d5cec1
}

.service-row>span {
    font-size: 9px;
    color: #b17b1a
}

.service-row h3 {
    font: 500 24px var(--serif);
    margin: 0
}

.service-row>b {
    font-size: 17px;
    color: #b17b1a;
    font-weight: 400
}

.service-note {
    font-size: 10px;
    color: #8b8378;
    line-height: 1.7;
    margin-top: 18px
}

.visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1c1915;
    min-height: 620px
}

.visit-photo {
    min-height: 620px;
    overflow: hidden
}

.visit-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.72) saturate(.75)
}

.visit-content {
    padding: 80px 12%;
    align-self: center
}

.visit h2 {
    font-size: clamp(48px, 5vw, 68px);
    margin: 30px 0 45px
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px
}

.contact-details>div:first-child {
    grid-column: span 2
}

.contact-details span {
    font-size: 8px;
    letter-spacing: 1.7px;
    color: var(--gold2)
}

.contact-details p {
    font-size: 13px;
    line-height: 1.7;
    color: #e2dbcf;
    margin: 9px 0 0
}

.contact-details a:hover {
    color: var(--gold2)
}

.footer {
    background: #11100e;
    padding: 45px 5.5% 22px;
    text-align: center
}

.footer-brand img {
    width: 240px;
    max-height: 75px;
    object-fit: contain
}

.footer>p {
    font: italic 16px var(--serif);
    color: #a9a094;
    margin: 18px 0 35px
}

.footer-bottom {
    border-top: 1px solid #39342c;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #81796e
}

.footer-bottom a {
    color: var(--gold2)
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .94);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 5vw
}

.lightbox.open {
    display: flex
}

.lightbox img {
    max-width: min(100%, 1000px);
    max-height: 85vh;
    object-fit: contain
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: 0;
    color: white;
    font-size: 42px;
    cursor: pointer
}

@keyframes heroZoom {
    from {
        transform: scale(1.08)
    }

    to {
        transform: scale(1.015)
    }
}

@media(max-width:900px) {
    .site-header {
        height: 74px
    }

    .brand img {
        width: 205px
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: 0;
        padding: 10px;
        z-index: 22
    }

    .menu-toggle span {
        width: 25px;
        height: 1px;
        background: var(--cream)
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: #1b1915;
        padding: 28px 6% 32px;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        border-top: 1px solid #39342c
    }

    .main-nav.open {
        display: flex
    }

    .main-nav>a:not(.nav-cta) {
        font-size: 14px
    }

    .nav-cta {
        text-align: center
    }

    .language {
        align-self: flex-start
    }

    .hero {
        min-height: 590px;
        height: calc(88vh - 104px)
    }

    .hero h1 {
        font-size: clamp(62px, 11vw, 92px)
    }

    .section-pad {
        padding: 85px 6%
    }

    .intro-grid {
        gap: 8%;
    }

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

    .feature-large {
        grid-column: auto;
    }

    .feature-img,
    .feature-large .feature-img {
        height: 290px;
    }

    .signature {
        grid-template-columns: 1fr 1fr
    }

    .signature-content {
        padding: 75px 9%
    }

    .signature-index {
        right: 9%;
        top: 75px
    }

    .gallery-grid {
        grid-template-rows: 190px 190px
    }

    .visit-content {
        padding: 70px 9%
    }
}

@media(max-width:600px) {
    .announcement {
        padding: 0 5%;
        font-size: 8px;
        letter-spacing: 1px
    }

    .announcement-right {
        display: none
    }

    .site-header {
        padding: 0 5%
    }

    .brand img {
        width: 180px
    }

    .hero {
        min-height: 620px;
        height: calc(92svh - 104px)
    }

    .hero-image {
        background-position: 58% center
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(14, 13, 11, .88), rgba(14, 13, 11, .42)), linear-gradient(0deg, rgba(14, 13, 11, .65), transparent 40%)
    }

    .hero-content {
        width: 88%;
        padding-bottom: 20px
    }

    .hero h1 {
        font-size: 68px;
        letter-spacing: -2px;
        margin: 28px 0 18px
    }

    .hero-copy {
        font-size: 13px;
        max-width: 300px
    }

    .hero-actions {
        gap: 19px;
        flex-wrap: wrap
    }

    .button {
        padding: 15px 16px;
        gap: 20px
    }

    .scroll-cue {
        display: none
    }

    .hero-bottom {
        font-size: 7px;
        letter-spacing: 1px;
        bottom: 18px
    }

    .section-pad {
        padding: 72px 6%
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 48px 0 35px
    }

    .intro h2,
    .section-heading h2,
    .gallery-head h2,
    .services h2 {
        font-size: 48px
    }

    .intro-photo {
        height: 280px
    }

    .photo-caption {
        font-size: 7px;
        padding: 12px
    }

    .section-heading,
    .gallery-head {
        display: block;
        margin: 48px 0 32px
    }

    .section-heading>p,
    .gallery-head>p {
        margin-top: 22px
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .feature-large {
        grid-column: auto
    }

    .feature-large .feature-img,
    .feature-img {
        height: 290px
    }

    .feature-info h3 {
        font-size: 23px
    }

    .signature {
        grid-template-columns: 1fr
    }

    .signature-image {
        min-height: 320px;
        height: 320px;
        padding: 18px
    }

    .signature-image img {
        max-height: 284px
    }

    .signature-content {
        padding: 65px 7% 75px
    }

    .signature-index {
        top: 65px;
        right: 7%
    }

    .signature h2 {
        font-size: 56px;
        margin: 48px 0 18px
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 170px 170px;
        gap: 10px
    }

    .gallery-item.tall {
        grid-row: span 2
    }

    .gallery-item.wide {
        grid-column: span 2
    }

    .gallery-item span {
        font-size: 16px;
        left: 12px;
        bottom: 12px
    }

    .menu-band {
        padding: 70px 6%
    }

    .menu-band-inner {
        display: block
    }

    .menu-band h2 {
        font-size: 50px
    }

    .menu-band-inner>.button {
        margin-top: 30px
    }

    .menu-band:after {
        font-size: 140px;
        bottom: -35px
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 48px
    }

    .service-row h3 {
        font-size: 22px
    }

    .visit {
        grid-template-columns: 1fr
    }

    .visit-photo {
        min-height: 280px;
        height: 280px
    }

    .visit-content {
        padding: 65px 7% 75px
    }

    .visit h2 {
        font-size: 56px;
        margin: 25px 0 35px
    }

    .contact-details {
        gap: 20px
    }

    .footer {
        padding: 38px 6% 18px
    }

    .footer-brand img {
        width: 205px
    }

    .footer-bottom {
        gap: 12px;
        flex-wrap: wrap;
        font-size: 7px
    }

    .footer-bottom span:last-child {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important
    }
}