:root {
    --gold: #C19D60;
    --dark: #292929;
    --darker: #212121;
    --line: rgba(255, 255, 255, .08);
    --serif: "Playfair Display", serif;
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font: 400 13px Poppins, sans-serif; text-align: center; color: #fff; background: var(--dark); }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
h2, h3, h4 { font-size: 100%; font-weight: inherit; }
p { padding-bottom: 10px; font-size: 13px; line-height: 24px; color: rgba(255, 255, 255, .8); }
[id^="sec"] { scroll-margin-top: 80px; }

.container { position: relative; z-index: 5; width: 92%; max-width: 1224px; margin: 0 auto; }
.icon { display: inline-block; width: .875em; height: 1em; vertical-align: -.125em; }
.bg { position: absolute; inset: 0; background: center / cover; }
.par-bg { top: -15%; bottom: auto; height: 130%; }
.overlay { position: absolute; inset: 0; background: #000; opacity: .4; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.header-top { position: absolute; top: 14px; left: 0; right: 0; z-index: 1; display: flex; justify-content: space-between; font: 600 13px var(--serif); }
.header-top a { transition: color .2s ease-in-out; }
.header-top a:hover, .lang .act { color: var(--gold); }
.lang a, .lang span { margin-right: 10px; }
.header-contacts a { margin-left: 20px; }
.header-contacts span { padding-right: 10px; color: var(--gold); transition: color .2s ease-in-out; }
.header-contacts a:hover span { color: #fff; }

.header-inner { z-index: 2; top: 50px; transition: top .2s ease-in-out; }
.header.scrolled .header-inner { top: 0; }
.header-bar { position: relative; display: flex; height: 70px; background: var(--dark); border: solid var(--line); border-width: 0 1px 1px; }
.header-bar::after { content: ""; width: 70px; border-left: 1px solid var(--line); } /* cella vuota a destra, come l'originale */
.logo { margin: 23px auto 0 25px; }
.logo img { display: block; width: auto; height: 25px; }

.nav { margin-top: 17px; }
.nav ul { display: flex; }
.nav li { height: 50px; margin-right: 6px; }
.nav a { display: block; padding: 5px 11px; font-size: 12px; font-weight: 600; line-height: 25px; text-transform: uppercase; transition: color .1s linear; }
.nav a:hover, .nav a.act { color: var(--gold); }

.burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 70px; padding-top: 2px; background: none; border: 0; border-left: 1px solid var(--line); cursor: pointer; }
.burger span { width: 22px; height: 2px; margin: 0 auto; background: #fff; border-radius: 4px; }
.burger span:first-child { width: 11px; transform: translateX(-5.5px); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 20; height: 100vh; height: 100svh; overflow: hidden; }
.hero-title-wrap { position: relative; top: 36%; }
.hero-title { max-width: 800px; text-align: left; }
.hero-title h4 { position: relative; padding-bottom: 20px; font: italic 16px var(--serif); }
.hero-title h4::before { content: "●●●●●"; position: absolute; top: -38px; left: 0; font-size: 7px; font-style: normal; letter-spacing: 6.2px; }
.hero-title h2 { font-size: 50px; font-weight: 800; line-height: 70px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-btn { display: inline-block; padding: 14px 20px; font: 600 13px var(--serif); background: rgba(255, 255, 255, .1); border: 1px solid var(--gold); transition: .2s linear; }
.hero-btn-book { color: #1a1a1a; background: var(--gold); }
.hero-btn:hover { color: #666; background: #fff; border-color: transparent; }
.hero-btn .icon, .btn .icon { margin-left: 30px; }
.hero-btn .icon { transition: transform .2s linear; }
.hero-btn:hover .icon, .btn:hover .icon { transform: rotateX(360deg); }

.hero-social { position: absolute; left: 50px; top: 42%; width: 50px; }
.hero-social a { display: flex; align-items: center; justify-content: center; height: 50px; background: rgba(255, 255, 255, .1); border: solid rgba(255, 255, 255, .2); border-width: 0 1px 1px; }
.hero-social li:first-child a { border-top-width: 1px; }
.hero-social a:hover { color: var(--gold); background: var(--darker); border-color: var(--line); }
.hero-dec { position: absolute; left: 70px; width: 80px; height: 80px; border: 0 dotted rgba(255, 255, 255, .4); border-left-width: 1px; }
.hero-dec-top { top: 50px; border-top-width: 1px; }
.hero-dec-bottom { bottom: 50px; border-bottom-width: 1px; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 60px; text-align: right; }
.scroll-down { position: relative; top: 2px; font-size: 18px; }
.scroll-down:hover { color: var(--gold); }

.brush { position: absolute; left: 0; bottom: 0; z-index: 20; width: 100%; height: 40px; background: url(images/bg/brush-dec.png); }
.brush-bottom { top: 100%; bottom: auto; height: 50px; margin-top: -2px; background-image: url(images/bg/brush-dec_2.png); }

/* ---------- sezioni ---------- */
main { position: relative; z-index: 2; }
section { position: relative; padding: 100px 0; background: var(--darker); }
.about { padding: 140px 0; overflow: hidden; }

.section-title { position: relative; z-index: 5; }
.section-title.left { text-align: left; }
.section-title h4 { padding-bottom: 10px; font: italic 500 18px var(--serif); color: var(--gold); }
.section-title h2 { font: 900 30px var(--serif); }
.dots { margin: 10px 0 30px; }
.dots::after { content: "●●●●●●"; font-size: 7px; letter-spacing: 4px; color: rgba(255, 255, 255, .5); }
.gold-dots .dots::after { color: var(--gold); }

.row { display: flex; margin: 0 -15px; }
.col { width: 50%; padding: 0 15px; }
.text-block { padding-right: 80px; text-align: left; }
.btn { display: inline-block; margin-top: 30px; padding: 14px 20px 14px 35px; font: 500 13px var(--serif); background: var(--gold); }
.btn .icon { transition: transform .4s linear; }

.collage { position: relative; }
.collage::before { content: ""; position: absolute; left: 50px; right: 50px; bottom: -50px; height: 150px; background: var(--darker); border: 1px dotted var(--gold); }
.collage-main { position: relative; z-index: 10; display: block; width: 100%; box-shadow: 0 9px 16px rgba(0, 0, 0, .35); }
.collage-side { position: absolute; z-index: 2; left: 68%; top: -15%; width: 65%; }
.collage-cube { position: absolute; z-index: 9; left: -23%; top: -17%; width: 120px; }

.corner-dec { position: absolute; top: -70px; left: -70px; width: 60px; height: 60px; border: 0 dotted var(--gold); border-width: 1px 0 0 1px; }
.wave { position: absolute; left: -10%; bottom: -5%; width: 80px; height: 180px; background: url(images/wave.png); }
.wave-right { left: auto; right: 20px; }

/* foto + orari */
.split { display: flex; padding: 0; overflow: hidden; }
.split-photo { position: relative; width: 50%; overflow: hidden; }
.split-photo .overlay { opacity: .5; }
.quote { position: absolute; left: 0; right: 0; top: 35%; padding: 0 90px; }
.quote .icon { display: block; width: 40px; height: 35px; margin: 2px auto 23px; color: var(--gold); }
.quote p { font: 15px/29px var(--serif); color: #fff; }
.quote h4 { position: relative; top: 70px; margin-right: 40px; padding-bottom: 20px; font-size: 14px; font-weight: 700; text-align: right; }

.split-text { position: relative; width: 50%; padding: 120px 50px; background: var(--dark); }
.split-text::before { content: ""; position: absolute; inset: 50px; z-index: 2; border: 1px dashed rgba(255, 255, 255, .2); box-shadow: 0 0 0 50px rgba(255, 255, 255, .03); }
.split-text .container { max-width: 550px; }
.illustration { position: absolute; inset: 0; z-index: 1; background: url(images/bg/dec/7.png) center / cover; opacity: .2; }
.work-time { position: relative; display: flex; margin: 0 -15px 30px; }
.work-time::before { content: ""; position: absolute; top: 0; bottom: 20px; left: 50%; width: 10px; margin-left: -5px; background: url(images/ver-separator.png) repeat-y; }
.work-time > div { width: 50%; padding: 0 15px; }
.work-time h3 { color: var(--gold); }
.hours { padding-bottom: 20px; font-size: 30px; font-weight: 600; text-transform: uppercase; }
.bold-separator { position: relative; max-width: 400px; margin: 0 auto 50px; }
.bold-separator span { display: inline-block; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.bold-separator::before, .bold-separator::after { content: ""; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--gold); opacity: .3; }
.bold-separator::before { left: 0; }
.bold-separator::after { right: 0; }
.book { margin-top: 20px; }
.book a { padding: 10px 20px; font: bold 28px var(--serif); letter-spacing: 1px; border: 1px solid var(--gold); transition: color .5s linear; }
.book a:hover { color: var(--gold); }

/* scrocchiarelle */
.cards { position: relative; z-index: 10; display: flex; gap: 30px; }
.card { flex: 1; }
.card-photo { position: relative; overflow: hidden; }
.card-photo img { display: block; width: 100%; transition: filter .2s ease-in-out; }
.card-photo:hover img { filter: brightness(.5); }
.card-photo::before, .card-photo::after { content: ""; position: absolute; z-index: 1; width: 40px; height: 40px; border: 0 dotted var(--gold); }
.card-photo::before { top: 20px; left: 20px; border-width: 1px 0 0 1px; }
.card-photo::after { right: 20px; bottom: 20px; border-width: 0 1px 1px 0; }
.card-info { position: relative; padding: 25px 30px 40px; background: #303030; border: solid var(--line); border-width: 0 1px 1px; }
.card-info h3 { padding-bottom: 10px; font: 600 18px var(--serif); }
.card-info p { margin-top: 20px; }
.card-info::after { content: "●●●"; position: absolute; left: 50%; bottom: 10px; width: 50px; margin-left: -25px; font-size: 6px; letter-spacing: 4px; color: var(--gold); }

.map { padding: 0; overflow: hidden; background: var(--dark); }
.map iframe { display: block; width: 100%; height: 650px; border: 0; }

/* ---------- footer: resta fermo sotto la pagina e viene scoperto a fine scroll ---------- */
.footer { position: sticky; bottom: 0; z-index: 1; padding: 70px 20px 0; background: var(--dark); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: #222; }
.footer .container { display: flex; justify-content: space-between; align-items: flex-start; height: 80px; padding-top: 30px; font-family: var(--serif); }
.copyright a { margin-left: 10px; color: var(--gold); }
.copyright a:hover { color: #fff; }
.to-top { position: relative; overflow: hidden; font-size: 14px; color: var(--gold); }
.to-top span { transition: opacity .2s linear; }
.to-top .icon { position: absolute; left: 0; top: -100%; width: 100%; height: 100%; opacity: 0; rotate: 180deg; transition: .4s linear; }
.to-top:hover span { opacity: 0; }
.to-top:hover .icon { top: 0; opacity: 1; }

/* ---------- cursore ---------- */
.cursor { position: fixed; left: -15px; top: -15px; z-index: 10000; width: 30px; height: 30px; border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; transform: translate(-100px, -100px); transition: transform .15s ease-out; }
.cursor::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; border-radius: 50%; transition: 2s cubic-bezier(.19, 1, .22, 1); }
body:has(a:hover, button:hover) .cursor::before { opacity: .2; transform: scale(3.5); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- loader: macchia d'inchiostro (sprite 25 frame) ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; overflow: hidden; animation: loader-hide 0s 2.8s forwards; }
.loader-ink { position: absolute; left: 50%; top: 50%; width: 2500%; height: 100%; background: url(images/ink2.png) 0 0 / 100% 100% no-repeat; transform: translate(-98%, -50%); animation: ink .8s steps(24) 1.5s forwards; }
.loader-spin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; animation: spin-out 1.5s cubic-bezier(.87, 0, .13, 1) forwards; }
.loader-spin::before { content: ""; position: absolute; inset: 0; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); border-radius: 50%; animation: spin .5s linear infinite; }
main, .header { animation: fade-in .5s 1.5s backwards; }
@keyframes ink { to { transform: translate(-2%, -50%); } }
@keyframes spin { to { transform: rotate(359deg); } }
@keyframes spin-out { to { transform: scale(0); } }
@keyframes loader-hide { to { visibility: hidden; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- movimento: scroll morbido + parallax solo CSS (dove supportato) ---------- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    .loader { display: none; }
    main, .header { animation: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .hero, section { view-timeline: --sec block; }
        .par-bg, .par-down, .par-up { animation: par-bg linear both; animation-timeline: --sec; }
        .par-down { animation-name: par-down; }
        .par-up { animation-name: par-up; }
    }
}
@keyframes par-bg { from { transform: translateY(-30%); } to { transform: translateY(30%); } }
@keyframes par-down { from { transform: translateY(-150px); } to { transform: translateY(150px); } }
@keyframes par-up { from { transform: translateY(150px); } to { transform: translateY(-150px); } }

/* ---------- responsive (stessi breakpoint dell'originale) ---------- */
@media (max-width: 1570px) {
    .hero-social, .hero-dec { display: none; }
}
@media (max-width: 1064px) {
    .header-bar::after { width: 46px; border: 0; }
    .burger { display: flex; }
    .nav { position: absolute; top: 70px; right: -20px; z-index: 50; width: 300px; margin: 0; padding: 15px 10px; background: var(--dark); visibility: hidden; opacity: 0; transition: .4s ease-in-out; }
    .nav.open { right: 0; visibility: visible; opacity: 1; }
    .nav ul { flex-direction: column; }
    .nav li { height: auto; margin: 0; padding: 0 20px; }
    .nav .nav-extra { order: -1; }
    .nav a { padding: 8px 5px; font-size: 11px; line-height: 20px; text-align: left; }

    .row { display: block; }
    .col { width: auto; }
    .text-block { padding-right: 0; }
    .collage { margin-top: 20px; }
    .collage-side, .collage-cube, .cursor { display: none; }

    .split { display: block; }
    .split-photo, .split-text { width: 100%; }
    .split-photo { padding: 90px 0; }
    .quote { position: relative; top: 0; padding: 0 20px; }
    .quote h4 { top: 0; margin-top: 20px; }
    .split-text .container { max-width: 1224px; }
    .work-time { display: block; }
    .work-time > div { width: auto; }

    .cards { display: block; }
    .card { margin-bottom: 20px; }
    .footer { position: relative; }
}
@media (max-width: 768px) {
    .footer .container { display: block; padding-top: 20px; text-align: left; }
    .to-top { display: inline-block; margin-top: 10px; }
}
@media (max-width: 600px) {
    .header-bar::after { width: 16px; }
    .burger { width: 40px; border: 0; }
}
@media (max-width: 560px) {
    .header .container { width: 100%; }
    .header-inner { top: 0; }
    .header-top { display: none; }
    .section-title h2 { font-size: 26px; }
    .split-text::before { inset: 20px; box-shadow: 0 0 0 20px rgba(255, 255, 255, .03); }
    .hero-title h2 { font-size: 42px; line-height: 54px; }
    .hero-title-wrap { top: 20%; }
    .hero-btns { margin-top: 24px; }
    .hero-btn .icon { margin-left: 12px; }
    section { padding: 70px 0; }
}
