/* ==========================================================================
   Villa Gisira Luxury SPA - foglio di stile
   Realizzato da YouECOM SRL. Nessuna dipendenza esterna.
   Palette presa dalle foto della villa: blu Ionio, turchese piscina,
   lilla del cielo al tramonto, pietra calcarea.
   ========================================================================== */

@font-face {
    font-family: "Cormorant";
    src: url("../fonts/cormorant.woff") format("woff");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant";
    src: url("../fonts/cormorant-italic.woff") format("woff");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope.woff") format("woff");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0b2b36;          /* blu Ionio profondo: testo e sezioni scure */
    --ink-soft: #3d5862;     /* testo secondario */
    --sea: #0f6e83;          /* link */
    --pool: #2cc6cc;         /* turchese delle luci in piscina: azioni */
    --pool-soft: #d4f3f3;
    --dusk: #d9c4f2;         /* lilla del tramonto: offerta diretta */
    --stone: #f1f4f1;        /* calcare chiaro: sfondo */
    --white: #ffffff;
    --line: rgba(11, 43, 54, 0.16);
    --err: #b3261e;

    --display: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --space: clamp(72px, 10vw, 140px);
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--pool); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .h2, .h3 { font-family: var(--display); margin: 0; color: inherit; }
.h2 {
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin-bottom: 0.6em;
    max-width: 18ch;
    text-wrap: balance;
}
.h3 { font-size: 1.4rem; font-weight: 620; line-height: 1.2; margin-bottom: 0.4em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; font-weight: 640; margin: 1.8em 0 0.5em; }
.prose h3 { font-size: 1.2rem; font-weight: 620; margin: 1.4em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 0.55em;
    font-weight: 600; color: var(--ink); text-decoration: none;
    border-bottom: 2px solid var(--pool); padding-bottom: 2px;
}
.link-arrow::after {
    content: ""; width: 0.9em; height: 0.9em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.2s ease;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Bottoni ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 24px;
    border: 0; border-radius: 999px;
    font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-pool { background: var(--pool); color: var(--ink); }
.btn-pool:hover { background: var(--white); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--sea); color: var(--white); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.btn-large { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }


/* ---------- Header ---------- */
.site-header {
    position: absolute; left: 0; right: 0; z-index: 30;
    color: var(--white);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-solid {
    position: fixed; top: 0;
    background: rgba(11, 43, 54, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.site-header.is-solid .header-row { min-height: 68px; }

.brand { display: flex; flex-direction: column; color: inherit; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-place { font-size: 0.78rem; opacity: 0.85; margin-top: 5px; letter-spacing: 0.02em; }
.brand:hover { color: inherit; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: inherit; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--pool); color: inherit; }
.nav-extra { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; font-weight: 600; }
.lang-switch a { color: inherit; text-decoration: none; padding: 6px 7px; border-radius: 4px; opacity: 0.7; }
.lang-switch a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.lang-switch a:hover { opacity: 1; color: inherit; }

.nav-toggle {
    display: none; align-items: center; gap: 10px;
    background: none; border: 0; color: inherit; font: 600 0.95rem var(--body); cursor: pointer; padding: 10px 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(380px, 100%);
        flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
        background: var(--ink); color: var(--white);
        padding: 96px 28px 32px;
        transform: translateX(100%); visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
    }
    .site-nav.is-open { transform: none; visibility: visible; }
    .nav-list { flex-direction: column; gap: 4px; }
    .nav-list a { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 600; padding: 6px 0; border: 0; }
    .nav-list a[aria-current="page"] { color: var(--pool); }
    .nav-extra { justify-content: space-between; }
    .nav-toggle { position: relative; z-index: 2; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: min(78svh, 760px);
    display: flex; flex-direction: column; justify-content: flex-end;
    color: var(--white); background: var(--ink);
    padding-top: 120px;
}
.hero-home { min-height: max(640px, 100svh); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(6, 26, 33, 0.55) 0%, rgba(6, 26, 33, 0.05) 26%, rgba(6, 26, 33, 0.18) 48%, rgba(6, 26, 33, 0.8) 100%);
}
.hero-content { padding-bottom: clamp(32px, 6vw, 72px); }
.hero-kicker { font-weight: 600; font-size: 1rem; margin-bottom: 14px; opacity: 0.92; }
.hero-title {
    font-size: clamp(3.1rem, 10vw, 8.6rem);
    font-weight: 760;
    line-height: 0.88; letter-spacing: -0.025em;
    max-width: 11ch; margin-bottom: 0.28em;
    text-wrap: balance;
}
.hero-page .hero-title { font-size: clamp(2.8rem, 8vw, 6.4rem); max-width: 14ch; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 44ch; margin: 0; }
.hero-bar { position: relative; margin-bottom: -56px; z-index: 2; }

/* animazione unica di apertura */
.hero-title, .hero-lead, .hero-kicker { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { animation-delay: 0.08s; }
.hero-lead { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Barra di ricerca date ---------- */
.booking-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.6fr 0.6fr auto; gap: 12px; align-items: end;
    background: var(--white); color: var(--ink);
    padding: 18px 18px 18px 26px; border-radius: 14px;
    box-shadow: 0 24px 48px -24px rgba(6, 26, 33, 0.45);
}
.booking-bar-title { font-family: var(--display); font-size: 1.3rem; font-weight: 650; line-height: 1.1; margin: 0 0 6px; align-self: center; }
.bar-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.bar-field { min-width: 0; }
.bar-field input { width: 100%; min-width: 0; }
@media (max-width: 960px) {
    .booking-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
    .booking-bar-title, .booking-bar .btn { grid-column: 1 / -1; }
}

/* ---------- Campi ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea {
    width: 100%; min-height: 48px; padding: 10px 14px;
    font: 400 1rem/1.4 var(--body); color: var(--ink);
    background: var(--white); border: 1.5px solid var(--line); border-radius: 8px;
    transition: border-color 0.15s ease;
    min-width: 0;
}
input[type="date"] { -webkit-appearance: none; appearance: none; }
textarea { min-height: 140px; resize: vertical; }
input:hover, textarea:hover { border-color: rgba(11, 43, 54, 0.35); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--pool); outline-offset: 0; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--err) !important; }

/* ---------- Sezioni ---------- */
.section { padding: var(--space) 0; }
.hero-home + .section { padding-top: calc(var(--space) + 56px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head .h2 { margin-bottom: 0; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.facts { margin: 36px 0; display: grid; gap: 0; }
.facts > div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 640; font-size: 1.2rem; line-height: 1.2; }
.facts dd { margin: 0; color: var(--ink-soft); }
.intro-media { position: relative; margin: 0; padding-bottom: 18%; }
.intro-media img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.intro-media-small {
    position: absolute; left: -12%; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius); border: 8px solid var(--stone);
}
@media (max-width: 900px) {
    .intro-grid { grid-template-columns: 1fr; }
    .intro-media-small { left: auto; right: -4px; }
    .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* giorno / notte */
.daynight { background: var(--white); }
.daynight-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.dn { margin: 0; }
.dn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.dn-night { margin-top: 18%; }
.dn-night img { aspect-ratio: 4 / 5; }
.dn figcaption { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }
.dn figcaption strong { color: var(--ink); font-family: var(--display); font-weight: 650; font-size: 1.15rem; display: block; margin-bottom: 2px; }
@media (max-width: 760px) {
    .daynight-grid { grid-template-columns: 1fr; }
    .dn-night { margin-top: 24px; }
}

/* teaser benessere / blocchi immagine + testo */
.teaser-grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.teaser-grid img, .split img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
    .teaser-grid, .split { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
}

/* ---------- Minuti dai luoghi (elemento firma) ---------- */
.minutes-section { background: var(--ink); color: var(--white); }
.minutes-section .section-head p { color: rgba(255, 255, 255, 0.75); }
.minutes-section .link-arrow { color: var(--white); }
.minutes { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.minutes li {
    display: grid; grid-template-rows: auto auto auto; padding: 26px 24px 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.min-num {
    font-family: var(--display); font-weight: 760;
    font-size: clamp(4.2rem, 9vw, 7.4rem); line-height: 0.85; letter-spacing: -0.03em; color: var(--pool);
}
.min-num small { font-size: 0.22em; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--white); vertical-align: 0.3em; }
.min-place { font-family: var(--display); font-weight: 650; font-size: 1.35rem; margin-top: 14px; }
.min-note { color: rgba(255, 255, 255, 0.7); font-size: 0.97rem; }
@media (max-width: 820px) { .minutes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .minutes { grid-template-columns: 1fr; } }

/* ---------- Banda offerta ---------- */
.offer-band { background: var(--dusk); padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.offer-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.offer-big {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(6rem, 20vw, 17rem); line-height: 0.8; letter-spacing: -0.05em; margin: 0;
}
.offer-band .lead { color: var(--ink); }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } }

/* striscia foto */
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.strip-head .h2 { margin: 0; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) {
    .strip { grid-template-columns: repeat(4, 64vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .strip img { scroll-snap-align: start; }
}

/* ---------- Pagine interne ---------- */
.page-intro { padding: var(--space) 0 calc(var(--space) * 0.6); }
.page-intro .lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink); max-width: 52ch; }

/* camere */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.room img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.room p { color: var(--ink-soft); }
.room ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.room li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
@media (max-width: 760px) { .rooms { grid-template-columns: 1fr; } }

/* servizi: elenco a colonne */
.amenities { columns: 3 240px; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.amenities li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); }
.amenities strong { display: block; font-weight: 600; }
.amenities span { color: var(--ink-soft); font-size: 0.97rem; }

.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink .lead, .band-ink p { color: rgba(255, 255, 255, 0.82); }
.band-ink a:not(.btn) { color: var(--pool); }

/* trattamenti */
.treatments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; list-style: none; padding: 0; margin: 0; }
.treatments li { border-top: 2px solid var(--ink); padding: 18px 0 28px; }
.treatments p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .treatments { grid-template-columns: 1fr; } }

/* dintorni */
.places { list-style: none; margin: 0; padding: 0; }
.place {
    display: grid; grid-template-columns: 170px 1fr 300px; gap: 32px; align-items: start;
    padding: 36px 0; border-top: 1px solid var(--line);
}
.place:last-child { border-bottom: 1px solid var(--line); }
.place .min-num { color: var(--sea); font-size: clamp(3.2rem, 6vw, 5rem); }
.place .min-num small { color: var(--ink-soft); }
.place h3 { font-size: 1.6rem; font-weight: 650; margin-bottom: 6px; }
.place-tag { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--ink); background: var(--pool-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.place p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
    .place { grid-template-columns: 110px 1fr; }
    .place img { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 520px) { .place { grid-template-columns: 1fr; gap: 12px; } }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.tips h3 { font-size: 1.25rem; margin-bottom: 8px; }
@media (max-width: 820px) { .tips { grid-template-columns: 1fr; gap: 24px; } }

/* offerte */
.offer-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 14px; overflow: hidden; }
.offer-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.offer-card-body { padding: clamp(28px, 5vw, 56px); }
.offer-card .offer-big { font-size: clamp(5rem, 12vw, 9rem); color: var(--ink); margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--line); }
.checklist li::before {
    content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px;
    border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg);
}
@media (max-width: 820px) { .offer-card { grid-template-columns: 1fr; } .offer-card img { min-height: 220px; } }

/* galleria */
.gallery { columns: 3 300px; column-gap: 14px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.gallery button {
    display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: none; cursor: zoom-in;
    border-radius: var(--radius); overflow: hidden; break-inside: avoid;
}
.gallery img { width: 100%; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(6, 26, 33, 0.96); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(6, 26, 33, 0.9); }
.lightbox-top { display: flex; justify-content: flex-end; padding: 16px var(--gutter); }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { margin-top: 12px; text-align: center; opacity: 0.85; }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.lb-btn {
    background: rgba(255, 255, 255, 0.12); color: var(--white); border: 0; border-radius: 999px;
    min-width: 48px; min-height: 48px; padding: 0 18px; font: 600 0.95rem var(--body); cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }

/* contatti */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-aside .h3 { margin-top: 32px; }
.contact-aside .h3:first-child { margin-top: 0; }
.contact-aside .big-phone { font-family: var(--display); font-size: 1.7rem; font-weight: 650; color: var(--ink); text-decoration: none; display: inline-block; line-height: 1.25; }
.contact-aside .big-phone:hover { color: var(--sea); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-panel { background: var(--white); border-radius: 14px; padding: clamp(22px, 4vw, 44px); scroll-margin-top: 90px; }
.request-form .fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; margin: 20px 0 28px; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.field-dates { grid-column: span 1; }
.field-small { grid-column: span 1; }
.field-half { grid-column: span 2; }
.field-full { grid-column: 1 / -1; }
.field-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 0; }
.field-err { font-size: 0.88rem; color: var(--err); font-weight: 600; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; font-size: 0.95rem; }
.field-check .field-err { grid-column: 2; }
.request-form.is-info [data-booking-only] { display: none; }
@media (max-width: 680px) {
    .request-form .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-half { grid-column: 1 / -1; }
}

.type-switch { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-switch legend { font-family: var(--display); font-size: 1.35rem; font-weight: 650; margin-bottom: 12px; padding: 0; }
.type-switch label { position: relative; cursor: pointer; }
.type-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-switch span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.95rem; }
.type-switch input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.type-switch input:focus-visible + span { outline: 3px solid var(--pool); outline-offset: 2px; }
.discount-note { margin: 18px 0 0; padding: 10px 14px; background: var(--dusk); border-radius: 8px; font-weight: 600; font-size: 0.95rem; }

.notice { border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; }
.notice p:last-child { margin-bottom: 0; }
.notice-title { font-weight: 700; margin-bottom: 4px; }
.notice-ok { background: var(--pool-soft); }
.notice-err { background: #fbe7e5; color: #6e1610; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* pagine di sistema */
.system { min-height: 70vh; display: flex; align-items: center; padding-top: 140px; background: var(--ink); color: var(--white); }
.system p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 80px 0 32px; font-size: 0.97rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--pool); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; }
.footer-brand .brand-name { font-size: 2.2rem; color: var(--white); margin-bottom: 12px; line-height: 1; }
.footer-brand p { max-width: 34ch; }
.footer-title { font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--pool); margin: 0 0 10px; }
.footer-title:not(:first-child) { margin-top: 22px; }
.site-footer address { font-style: normal; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-legal {
    margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 0.86rem;
}
.footer-legal p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
    .request-form .field-dates { grid-column: 1 / -1; }
}

/* ---------- Titoli in Cormorant (serif elegante), testi in Manrope ---------- */
h1, h2, h3, .h2, .h3, .hero-title, .brand-name, .min-place, .offer-big,
.facts dt, .dn figcaption strong, .booking-bar-title, .contact-aside .big-phone,
.type-switch legend, .place h3, .prose h2, .prose h3 {
    font-weight: 600;
}
.h2 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -0.005em; }
.h3 { font-size: 1.75rem; line-height: 1.12; }
.hero-title { font-size: clamp(3.4rem, 10vw, 8.6rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.01em; max-width: 13ch; }
.hero-page .hero-title { font-size: clamp(3rem, 8vw, 6.6rem); }
.brand-name { font-size: 2rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-place { font-size: 0.74rem; letter-spacing: 0.04em; }
.footer-brand .brand-name { font-size: 2.6rem; }
.facts dt { font-size: 1.5rem; line-height: 1.15; }
.dn figcaption strong { font-size: 1.5rem; }
.booking-bar-title { font-size: 1.6rem; }
.min-num { font-weight: 500; letter-spacing: -0.02em; line-height: 0.9; }
.min-num small { font-family: var(--body); font-size: 0.15em; font-weight: 600; }
.min-place { font-size: 1.7rem; }
.offer-big { font-weight: 500; letter-spacing: -0.03em; }
.place h3 { font-size: 2rem; }
.contact-aside .big-phone { font-size: 2rem; }
.type-switch legend { font-size: 1.7rem; }
.prose h2 { font-size: 2.1rem; }
.hero-kicker, .nav-list a, .btn, .lang-switch { letter-spacing: 0.01em; }
.lead { line-height: 1.7; }
body { font-size: 1.02rem; line-height: 1.7; }
@media (max-width: 1060px) {
    .nav-list a { font-weight: 500; font-size: 2.4rem; }
}
/* numeri allineati (Cormorant di default usa i numeri "old style") */
h1, h2, h3, .h2, .h3, .min-num, .offer-big, .big-phone, .facts dt { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

.hero-content { text-shadow: 0 1px 18px rgba(6, 26, 33, 0.45); }

/* ---------- Slider della home: dissolvenza tra 6 foto ---------- */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity 1.6s ease-in-out, transform 8s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.slider-ctrl {
    position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 128px; z-index: 3;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: var(--white);
}
.slide-caption { margin: 0; font-size: 0.9rem; font-weight: 600; text-shadow: 0 1px 12px rgba(6, 26, 33, 0.6); transition: opacity 0.4s ease; }
.slide-dots { display: flex; align-items: center; gap: 4px; }
.slide-dot {
    width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.slide-dot::before {
    content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px;
    background: rgba(255, 255, 255, 0.45); border-radius: 2px; transition: background-color 0.3s ease;
}
.slide-dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.slide-dot.is-active::before { background: var(--pool); }
.slide-pause {
    width: 34px; height: 34px; margin-left: 6px; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: 50%;
    background: rgba(6, 26, 33, 0.25); cursor: pointer; position: relative;
}
.slide-pause::before, .slide-pause::after {
    content: ""; position: absolute; top: 10px; width: 3px; height: 11px; background: var(--white); border-radius: 1px;
}
.slide-pause::before { left: 12px; }
.slide-pause::after { left: 17px; }
.slide-pause[aria-pressed="true"]::before {
    left: 13px; top: 9px; width: 0; height: 0; background: none; border-radius: 0;
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--white);
}
.slide-pause[aria-pressed="true"]::after { display: none; }
@media (max-width: 960px) { .slider-ctrl { bottom: auto; top: 96px; } .slide-caption { display: none; } }
