@font-face {
    font-family: "Fraunces";
    src: url(../fonts/fraunces-latin-wght-normal.woff2) format("woff2");
    font-weight: 100 900;
    font-display: swap
}

@font-face {
    font-family: "Nunito";
    src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2");
    font-weight: 200 1000;
    font-display: swap
}

:root {
    --ink: #4a2f21;
    --wood: #8b5e3c;
    --honey: #c9a27a;
    --sand: #f4ebe0;
    --white: #fffdfb;
    --gecko: #7ba05b;
    --r: 26px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 400 1.0625rem/1.7 "Nunito", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white)
}

h1,
h2,
h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.01em
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem)
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem)
}

h3 {
    font-size: 1.2rem
}

p {
    margin: 0 0 1em
}

a {
    color: var(--wood)
}

img {
    max-width: 100%;
    display: block
}

:focus-visible {
    outline: 3px solid var(--gecko);
    outline-offset: 3px;
    border-radius: 8px
}

html[lang=it] [data-t=de],
html[lang=it] [data-t=en],
html[lang=de] [data-t=it],
html[lang=de] [data-t=en],
html[lang=en] [data-t=it],
html[lang=en] [data-t=de] {
    display: none
}

.wrap {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto
}

.narrow {
    width: min(720px, 100% - 2.5rem);
    margin-inline: auto
}

/* navbar */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 251, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 94, 60, .15)
}

.nav .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--ink);
    font: 600 1.25rem "Fraunces", serif;
    margin-right: auto
}

.brand img {
    width: 52px;
    height: 52px;
    transition: transform .5s
}

.brand:hover img {
    transform: rotate(-8deg) scale(1.06)
}

.menu {
    display: flex;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.menu a {
    display: block;
    padding: .45rem .95rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    transition: background .25s, color .25s
}

.menu a:hover {
    background: var(--sand)
}

.menu a[aria-current] {
    background: var(--ink);
    color: var(--white)
}

.lang {
    display: flex;
    background: var(--sand);
    border-radius: 999px;
    padding: 3px
}

.lang button {
    border: 0;
    background: none;
    font: 700 .85rem "Nunito", sans-serif;
    color: var(--ink);
    padding: .3rem .75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .25s
}

.lang button[aria-pressed=true] {
    background: var(--wood);
    color: #fff
}

.burger {
    display: none;
    border: 0;
    background: var(--sand);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--ink)
}

.burger svg {
    width: 24px;
    height: 24px
}

@media(max-width:860px) {
    .burger {
        display: grid;
        place-items: center
    }

    .menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--white);
        padding: .75rem 1.25rem 1.25rem;
        border-bottom: 1px solid rgba(139, 94, 60, .15)
    }

    .nav.open .menu {
        display: flex
    }

    .brand span {
        display: none
    }
}

/* buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.6rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--ink);
    transition: transform .25s, background .25s
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--wood);
    border-color: var(--wood)
}

.btn.ghost {
    background: transparent;
    color: var(--ink)
}

.btn.ghost:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink)
}

/* home */
.hero {
    position: relative;
    padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
    text-align: center;
    overflow: hidden
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/hero.jpg) center/cover;
    opacity: .42;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent)
}

.hero-box {
    position: relative;
    width: min(760px, 100% - 2.5rem);
    margin-inline: auto;
    padding: clamp(1.75rem, 5vw, 3.25rem);
    background: rgba(255, 253, 251, .82);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    box-shadow: 0 20px 60px -30px rgba(74, 47, 33, .45)
}

.hero-box>* {
    animation: rise .9s both
}

.hero-box> :nth-child(2) {
    animation-delay: .15s
}

.hero-box> :nth-child(3) {
    animation-delay: .3s
}

.hero-box> :nth-child(4) {
    animation-delay: .45s
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px)
    }
}

.hero h2 {
    color: var(--wood);
    font-weight: 500;
    font-size: clamp(1.4rem, 3vw, 2rem)
}

.hero p {
    max-width: 60ch;
    margin-inline: auto
}

.hero .btns {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.6rem
}

/* sections */
.page {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem)
}

.page>.wrap>h1,
.page>.narrow>h1 {
    margin-bottom: .4em
}

.lead {
    max-width: 62ch;
    color: #6b4a38
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center
}

.arch {
    border-radius: 999px 999px var(--r) var(--r);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--sand)
}

.arch img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

@media(max-width:760px) {
    .about {
        grid-template-columns: 1fr
    }

    .about .arch {
        max-width: 420px
    }
}

/* shop */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2.25rem 1.75rem;
    margin-top: 2.5rem
}

.item h3 {
    margin: 1rem 0 .4rem
}

.item .arch img {
    transition: transform .6s
}

.item a.photo {
    display: block;
    text-decoration: none
}

.item a.photo:hover img {
    transform: scale(1.06)
}

.item .note {
    font-size: .95rem;
    line-height: 1.55;
    margin: 0
}

/* product */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
    margin-top: 1.5rem
}

.product h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem)
}

.crumb {
    font-weight: 700;
    text-decoration: none
}

.crumb:hover {
    text-decoration: underline
}

.ba {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 3.5rem
}

.ba figure {
    margin: 0
}

.ba img {
    border-radius: var(--r);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.ba figcaption {
    margin-top: .6rem;
    font-weight: 700;
    color: var(--wood)
}

.ba .wide {
    grid-column: 1/-1
}

.ba .wide img {
    aspect-ratio: auto;
    max-height: 520px;
    object-fit: contain;
    background: var(--sand);
    margin-inline: auto
}

@media(max-width:760px) {
    .product {
        grid-template-columns: 1fr
    }
}

/* gallery */
.masonry {
    columns: 3 280px;
    column-gap: 1.25rem;
    margin-top: 2.5rem
}

.masonry figure {
    margin: 0 0 1.25rem;
    break-inside: avoid
}

.masonry button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 20px;
    overflow: hidden
}

.masonry img {
    width: 100%;
    height: auto;
    transition: transform .6s
}

.masonry button:hover img {
    transform: scale(1.05)
}

.masonry figcaption {
    padding: .5rem .25rem 0;
    font-size: .95rem;
    color: #6b4a38
}

dialog {
    border: 0;
    padding: 0;
    background: none;
    max-width: min(94vw, 1000px);
    max-height: 92vh;
    overflow: visible
}

dialog::backdrop {
    background: rgba(48, 29, 19, .82)
}

dialog img {
    max-height: 82vh;
    width: auto;
    margin: auto;
    border-radius: 20px
}

dialog p {
    color: #fff;
    text-align: center;
    margin: .75rem 0 0
}

dialog button {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer
}

/* contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    margin-top: 2rem
}

.contact address {
    font-style: normal
}

.contact dl {
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem 1rem
}

.contact dt {
    font-weight: 800
}

.contact dd {
    margin: 0
}

.map {
    border: 0;
    width: 100%;
    min-height: 380px;
    height: 100%;
    border-radius: var(--r);
    background: var(--sand)
}

@media(max-width:760px) {
    .contact {
        grid-template-columns: 1fr
    }
}

/* footer */
.foot {
    background: var(--sand);
    padding: 2.5rem 0;
    font-size: .95rem
}

.foot .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3rem;
    align-items: center;
    justify-content: space-between
}

.foot img {
    width: 56px;
    height: 56px
}

.foot p {
    margin: 0
}

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

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