/* ==========================================================================
   Lungomare Apartment Trapani — Design system
   Casa vacanze a Trapani per massimo 6 persone
   Vanilla CSS, nessuna dipendenza esterna (no Bootstrap / jQuery / Owl).
   Obiettivo: massima velocita' (Core Web Vitals) + conversione diretta.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens */
:root {
    color-scheme: light;

    /* Colori — palette costiera mediterranea */
    --c-ink: #12262d;
    --c-ink-soft: #40575f;
    --c-muted: #6b7f87;
    --c-sea: #0f5c6b;
    --c-sea-dark: #0a4451;
    --c-sea-light: #e6f0f1;
    --c-gold: #c08a3e;
    --c-gold-light: #f3e7d4;
    --c-sand: #f8f4ec;
    --c-paper: #ffffff;
    --c-line: #e5ded2;
    --c-ok: #1f7a4d;
    --c-ok-bg: #e6f4ec;
    --c-err: #a6321f;
    --c-err-bg: #fbecea;

    /* Tipografia */
    --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spazi */
    --s-1: .25rem;
    --s-2: .5rem;
    --s-3: .75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;

    --wrap: 1180px;
    --wrap-narrow: 800px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(18, 38, 45, .06), 0 4px 12px rgba(18, 38, 45, .06);
    --shadow-md: 0 10px 30px rgba(18, 38, 45, .10);
    --shadow-lg: 0 24px 60px rgba(18, 38, 45, .16);
    --header-h: 72px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; border: 0; }

a { color: var(--c-sea); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-gold); }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--c-ink);
    margin: 0 0 var(--s-4);
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--s-4); }
p:last-child, ul:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.15rem; margin: 0 0 var(--s-4); }
li { margin-bottom: .35rem; }

strong, b { font-weight: 600; color: var(--c-ink); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-6) 0; }

::selection { background: var(--c-gold-light); color: var(--c-ink); }

:focus-visible {
    outline: 3px solid var(--c-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--c-ink);
    color: #fff;
    padding: var(--s-3) var(--s-5);
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- Utilities */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--s-5);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 1400px; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--sand { background: var(--c-sand); }
.section--sea { background: var(--c-sea-dark); color: #dbe7e9; }
.section--sea h2, .section--sea h3, .section--sea .eyebrow { color: #fff; }

.eyebrow {
    display: block;
    font-family: var(--f-body);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: var(--s-3);
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--c-ink-soft);
    line-height: 1.75;
}

.section__head { max-width: 740px; margin-bottom: var(--s-7); }
.section__head--center { margin-inline: auto; text-align: center; }

.rule {
    width: 56px; height: 2px;
    background: var(--c-gold);
    border: 0; margin: var(--s-5) 0;
}
.section__head--center .rule { margin-inline: auto; }

.text-center { text-align: center; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* --------------------------------------------------------------- Bottoni */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--f-body);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    padding: 1.05rem 1.9rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .22s var(--ease), color .22s var(--ease),
                border-color .22s var(--ease), transform .22s var(--ease),
                box-shadow .22s var(--ease);
    text-align: center;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-sea); border-color: var(--c-sea); color: #fff; }
.btn--primary:hover { background: var(--c-sea-dark); border-color: var(--c-sea-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--gold { background: var(--c-gold); border-color: var(--c-gold); color: #fff; }
.btn--gold:hover { background: #a5732f; border-color: #a5732f; color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; border-color: currentColor; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); color: #fff; }
.btn--light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

.btn--wa { background: #25d366; border-color: #25d366; color: #0b3d1c; }
.btn--wa:hover { background: #1eb959; border-color: #1eb959; color: #0b3d1c; }

.btn--block { width: 100%; }
.btn--lg { padding: 1.2rem 2.2rem; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-group--center { justify-content: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .93rem;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--c-sea);
    border-bottom: 1px solid var(--c-gold);
    padding-bottom: 2px;
}
.link-arrow:hover { color: var(--c-gold); }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    width: 100%;
}
.site-header.is-solid,
.site-header.is-plain {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 0 var(--c-line), 0 6px 24px rgba(18, 38, 45, .06);
    backdrop-filter: saturate(150%) blur(8px);
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
/* Il marchio e' quadrato (49x49): larghezza e altezza devono restare uguali,
   altrimenti la stella si deforma. Mostrato a 40px resta nitido anche sugli
   schermi ad alta densita'. */
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--f-display);
    font-size: 1.28rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: color .3s var(--ease);
}
.brand__sub {
    font-size: .63rem;
    letter-spacing: .15em;
    white-space: nowrap;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    font-weight: 500;
    transition: color .3s var(--ease);
}
.is-solid .brand__name, .is-plain .brand__name { color: var(--c-ink); }
.is-solid .brand__sub, .is-plain .brand__sub { color: var(--c-muted); }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
    position: relative;
    white-space: nowrap;
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    padding-block: .5rem;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1.5px;
    background: var(--c-gold);
    transition: width .25s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.is-solid .nav__link, .is-plain .nav__link { color: var(--c-ink-soft); }
.is-solid .nav__link:hover, .is-plain .nav__link:hover,
.is-solid .nav__link[aria-current="page"], .is-plain .nav__link[aria-current="page"] { color: var(--c-sea); }

.header__cta { display: none; padding: .95rem 1.4rem; font-size: .8rem; }
.header__phone {
    display: none;
    font-weight: 600;
    font-size: .93rem;
    color: #fff;
    white-space: nowrap;
}
.is-solid .header__phone, .is-plain .header__phone { color: var(--c-ink); }

.burger {
    width: 44px; height: 44px;
    display: grid; place-content: center; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 0;
    margin-left: auto;
}
.burger span {
    display: block; width: 26px; height: 2px;
    background: #fff;
    transition: background-color .3s var(--ease), transform .3s var(--ease), opacity .2s var(--ease);
}
.is-solid .burger span, .is-plain .burger span { background: var(--c-ink); }
.drawer-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--c-ink); }
.drawer-open .burger span:nth-child(2) { opacity: 0; }
.drawer-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--c-ink); }

/* Drawer mobile */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    background: var(--c-paper);
    z-index: 199;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    padding: calc(var(--header-h) + var(--s-5)) var(--s-6) var(--s-6);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.drawer-open .drawer { transform: translateX(0); }
.drawer__list { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.drawer__list li { margin: 0; border-bottom: 1px solid var(--c-line); }
.drawer__list a {
    display: block;
    padding: var(--s-4) 0;
    font-family: var(--f-display);
    font-size: 1.45rem;
    color: var(--c-ink);
}
.drawer__list a:hover, .drawer__list a[aria-current="page"] { color: var(--c-sea); }
.drawer__meta { font-size: .92rem; color: var(--c-muted); }
.drawer__meta a { display: block; font-weight: 600; color: var(--c-ink); margin-bottom: .25rem; }

.backdrop {
    position: fixed; inset: 0;
    background: rgba(18, 38, 45, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
    z-index: 198;
}
.drawer-open .backdrop { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------ Hero */
.hero {
    position: relative;
    display: grid;
    align-items: stretch;
    background: var(--c-sea-dark);
    padding-top: var(--header-h);
}

.hero__media { position: relative; min-height: 46vh; }
.hero__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 68, 81, .55) 0%, rgba(10, 68, 81, .25) 45%, rgba(10, 68, 81, .6) 100%);
}

.hero__panel {
    background: var(--c-sea-dark);
    color: #e9f1f2;
    padding: clamp(2.5rem, 7vw, 4.5rem) var(--s-5);
    display: flex;
    align-items: center;
}
.hero__inner { width: 100%; max-width: 560px; margin-inline: auto; }
.hero h1 { color: #fff; margin-bottom: var(--s-4); }
.hero .eyebrow { color: var(--c-gold); }
.hero__lead { color: rgba(233, 241, 242, .88); font-size: 1.08rem; margin-bottom: var(--s-5); }

.hero__facts {
    display: flex; flex-wrap: wrap; gap: var(--s-2);
    list-style: none; margin: 0 0 var(--s-6); padding: 0;
}
.hero__facts li {
    margin: 0;
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .82rem; font-weight: 600;
    letter-spacing: .04em;
    padding: .45rem .85rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.06);
}
.hero__facts svg { width: 15px; height: 15px; flex: none; color: var(--c-gold); }

/* Hero pagine interne: banner unico a tutta larghezza, non la griglia della home */
.hero--page {
    display: block;
    padding-top: 0;
    min-height: 0;
}
.hero--page .hero__banner {
    position: relative;
    min-height: clamp(320px, 42vh, 460px);
    display: flex; align-items: flex-end;
    padding-top: var(--header-h);
}
.hero--page .hero__banner > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero--page .hero__banner::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 68, 81, .62) 0%, rgba(10, 68, 81, .38) 40%, rgba(10, 68, 81, .78) 100%);
}
.hero--page .hero__content {
    position: relative; z-index: 2;
    width: 100%;
    padding-block: var(--s-7);
}
.hero--page h1 { margin-bottom: var(--s-2); }
.hero--page .hero__lead { max-width: 620px; margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { margin-bottom: var(--s-4); }
.breadcrumb ol {
    display: flex; flex-wrap: wrap; gap: .45rem;
    list-style: none; margin: 0; padding: 0;
    font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
}
.breadcrumb li { margin: 0; color: rgba(255,255,255,.72); }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; opacity: .55; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--c-gold); }

/* ------------------------------------------------------- Widget prenota */
.bookbar { position: relative; z-index: 5; }
.bookbar__inner {
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-top: 3px solid var(--c-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--s-5);
    display: grid;
    gap: var(--s-4);
    margin-top: calc(-1 * var(--s-6));
}
.bookbar__title {
    font-family: var(--f-body);
    font-size: .76rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--c-gold);
    margin: 0;
}
.bookbar__fields { display: grid; gap: var(--s-4); }
.bookbar__note { font-size: .84rem; color: var(--c-muted); margin: 0; }

/* ------------------------------------------------------------------- USP */
.usp {
    display: grid;
    gap: var(--s-5);
    list-style: none; margin: 0; padding: 0;
}
.usp li { margin: 0; display: flex; gap: var(--s-3); align-items: flex-start; }
.usp__icon {
    flex: none; width: 42px; height: 42px;
    display: grid; place-content: center;
    border-radius: 50%;
    background: var(--c-sea-light);
    color: var(--c-sea);
}
.usp__icon svg { width: 21px; height: 21px; }
.usp b { display: block; font-size: .98rem; }
.usp span { font-size: .9rem; color: var(--c-muted); line-height: 1.55; }

/* ----------------------------------------------------------------- Split */
.split { display: grid; gap: var(--s-6); align-items: center; }
.split__media { position: relative; }
.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.split__media--stack { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.split__media--stack img { aspect-ratio: 3 / 4; }
.split__badge {
    position: absolute;
    right: var(--s-4); bottom: var(--s-4);
    background: var(--c-paper);
    border-radius: var(--radius);
    padding: var(--s-3) var(--s-4);
    box-shadow: var(--shadow-md);
    font-size: .82rem; font-weight: 600;
    line-height: 1.3;
    max-width: 190px;
}
.split__badge b { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; color: var(--c-sea); }

/* ------------------------------------------------------------- Camere */
.rooms { display: grid; gap: var(--s-6); }
.room {
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.room__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sand); }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room:hover .room__media img { transform: scale(1.05); }
.room__tag {
    position: absolute; top: var(--s-3); left: var(--s-3);
    background: rgba(255,255,255,.94);
    color: var(--c-sea-dark);
    font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: .35rem .7rem;
    border-radius: 999px;
}
.room__body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.room__body h3 { margin-bottom: var(--s-2); }
.room__body p { font-size: .95rem; color: var(--c-ink-soft); }
.room__specs {
    list-style: none; margin: auto 0 0; padding: var(--s-4) 0 0;
    border-top: 1px solid var(--c-line);
    display: flex; flex-wrap: wrap; gap: var(--s-4);
    font-size: .85rem; color: var(--c-muted);
}
.room__specs li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.room__specs svg { width: 16px; height: 16px; color: var(--c-sea); flex: none; }

/* --------------------------------------------------------------- Servizi */
.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: var(--s-4);
    list-style: none; margin: 0; padding: 0;
}
.amenities li {
    margin: 0;
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: var(--s-4);
    display: flex; flex-direction: column; gap: .5rem;
    font-size: .9rem; font-weight: 500;
    line-height: 1.4;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.amenities li:hover { border-color: var(--c-gold); transform: translateY(-2px); }
.amenities svg { width: 24px; height: 24px; color: var(--c-sea); }

/* ------------------------------------------------- Prenota direttamente */
.direct {
    display: grid;
    gap: var(--s-6);
    align-items: center;
}
.direct__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.direct__list li {
    margin: 0;
    display: flex; gap: var(--s-3);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.direct__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.direct__list svg { width: 22px; height: 22px; flex: none; color: var(--c-gold); margin-top: 3px; }
.direct__list b { display: block; color: #fff; font-size: 1rem; }
.direct__list span { font-size: .93rem; color: rgba(219, 231, 233, .82); }

.direct__card {
    background: var(--c-paper);
    color: var(--c-ink);
    border-radius: var(--radius-lg);
    padding: var(--s-6);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.direct__card h3 { margin-bottom: var(--s-2); }
.direct__card p { font-size: .93rem; color: var(--c-muted); }
.direct__card .btn { margin-top: var(--s-2); }
.direct__contacts {
    margin-top: var(--s-5); padding-top: var(--s-5);
    border-top: 1px solid var(--c-line);
    font-size: .92rem;
}
.direct__contacts a { font-weight: 600; }

/* --------------------------------------------------------------- Gallery */
.gallery { columns: 1; column-gap: var(--s-4); }
.gallery__item {
    display: block;
    margin: 0 0 var(--s-4);
    break-inside: avoid;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-sand);
}
.gallery__item img { width: 100%; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.gallery__item::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(10, 68, 81, 0);
    transition: background-color .3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { background: rgba(10, 68, 81, .18); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(9, 24, 29, .95);
    z-index: 300;
    display: none;
    align-items: center; justify-content: center;
    padding: var(--s-5);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption {
    position: absolute; bottom: var(--s-5); left: 0; right: 0;
    text-align: center; color: rgba(255,255,255,.82);
    font-size: .88rem; padding-inline: var(--s-5);
}
.lightbox__btn {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: grid; place-content: center;
    font-size: 1.4rem; line-height: 1;
    transition: background-color .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: var(--s-5); right: var(--s-5); }
.lightbox__prev { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--s-4); top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------- FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details {
    border-bottom: 1px solid var(--c-line);
    padding: var(--s-4) 0;
}
.faq details[open] summary { color: var(--c-sea); }
.faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--f-display);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
    display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4);
    color: var(--c-ink);
    transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--f-body);
    font-size: 1.5rem; line-height: 1;
    color: var(--c-gold); flex: none;
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding-top: var(--s-3); color: var(--c-ink-soft); font-size: .98rem; }

/* -------------------------------------------------------------- Contenuti */
.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2rem; }
.prose li { color: var(--c-ink-soft); }

.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: var(--c-ink-soft); }
.checklist svg { width: 18px; height: 18px; color: var(--c-sea); flex: none; margin-top: 5px; }

.info-grid { display: grid; gap: var(--s-4); }
.info-card {
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-gold);
    border-radius: var(--radius);
    padding: var(--s-5);
}
.info-card h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.info-card p, .info-card li { font-size: .93rem; color: var(--c-ink-soft); margin-bottom: 0; }

/* ------------------------------------------------------------------ Form */
.form-card {
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid { display: grid; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
    font-size: .78rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-ink-soft);
}
.field .hint { font-size: .8rem; color: var(--c-muted); letter-spacing: 0; text-transform: none; font-weight: 400; }

.field input, .field select, .field textarea {
    font-family: var(--f-body);
    font-size: 1rem;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    width: 100%;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7f87'%3E%3Cpath d='M8 11.5 2.5 6h11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 13px;
    padding-right: 2.4rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-sea);
    box-shadow: 0 0 0 3px rgba(15, 92, 107, .12);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: var(--c-err); }
.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .87rem; color: var(--c-ink-soft); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--c-sea); }
.consent label { text-transform: none; letter-spacing: 0; font-size: .87rem; font-weight: 400; }

.alert {
    padding: var(--s-4);
    border-radius: var(--radius);
    font-size: .93rem;
    border: 1px solid transparent;
}
.alert--err { background: var(--c-err-bg); border-color: #eec9c3; color: var(--c-err); }
.alert--ok { background: var(--c-ok-bg); border-color: #bfe3cd; color: var(--c-ok); }

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Mappa */
.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
    line-height: 0;
    background: var(--c-sand);
}
.map-frame iframe { width: 100%; border: 0; display: block; }

/* --------------------------------------------------------------- CTA band */
.cta-band { background: var(--c-sea-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(219, 231, 233, .85); max-width: 620px; margin-inline: auto; }
.cta-band__phone {
    display: inline-block;
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin-block: var(--s-3);
}
.cta-band__phone:hover { color: var(--c-gold); }

/* ---------------------------------------------------------------- Footer */
.site-footer {
    background: var(--c-ink);
    color: rgba(228, 235, 237, .78);
    padding-block: var(--s-8) var(--s-5);
    font-size: .93rem;
}
.site-footer h4 {
    color: #fff;
    font-family: var(--f-body);
    font-size: .76rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    margin-bottom: var(--s-4);
}
.site-footer a { color: rgba(228, 235, 237, .88); }
.site-footer a:hover { color: var(--c-gold); }
.footer__grid { display: grid; gap: var(--s-6); }
.footer__brand { font-family: var(--f-display); font-size: 1.45rem; color: #fff; margin-bottom: var(--s-3); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .5rem; }
.footer__legal {
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
    justify-content: space-between;
    font-size: .82rem;
    color: rgba(228, 235, 237, .6);
}
.footer__codes { font-size: .82rem; color: rgba(228, 235, 237, .6); }
address { font-style: normal; }

/* ---------------------------------------------------------- CTA flottanti */
.wa-float {
    position: fixed;
    right: var(--s-4);
    bottom: calc(var(--s-4) + 68px);
    z-index: 150;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid; place-content: center;
    box-shadow: var(--shadow-md);
    transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

.mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 160;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--c-line);
    box-shadow: 0 -4px 20px rgba(18, 38, 45, .12);
}
.mobile-cta a {
    background: var(--c-paper);
    color: var(--c-ink);
    padding: 1rem .5rem;
    font-size: .84rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: .45rem;
}
.mobile-cta a.is-primary { background: var(--c-sea); color: #fff; }
.mobile-cta svg { width: 17px; height: 17px; }
body { padding-bottom: 0; }

/* ------------------------------------------------------------- Animazioni */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* ------------------------------------------------- Pagine senza hero foto */
.page-head { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)); }
.page-head h1 { margin-top: var(--s-3); }

.breadcrumb--dark li { color: var(--c-muted); }
.breadcrumb--dark a { color: var(--c-sea); }
.breadcrumb--dark a:hover { color: var(--c-gold); }

/* --------------------------------------- Mappa caricata solo su richiesta */
.map-consent {
    position: relative;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-sea-light);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image:
        linear-gradient(rgba(15, 92, 107, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 92, 107, .05) 1px, transparent 1px);
    background-size: 34px 34px;
}
.map-consent__inner { padding: var(--s-6); max-width: 620px; }
.map-consent__inner svg { width: 40px; height: 40px; color: var(--c-sea); margin-bottom: var(--s-3); }
.map-consent__inner h3 { margin-bottom: var(--s-2); }
.map-consent__inner p { font-size: .93rem; color: var(--c-ink-soft); margin-bottom: var(--s-5); }
.map-consent.is-loaded {
    display: block;
    min-height: 0;
    background: var(--c-sand);
    background-image: none;
    line-height: 0;
}
.map-consent iframe { width: 100%; height: 480px; border: 0; display: block; }

@media (max-width: 559px) {
    .map-consent iframe { height: 340px; }
}


/* ------------------------------------------------- Selettore di lingua */
.lang-switch {
    display: none;
    align-items: center;
    gap: .35rem;
    flex: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .45rem .8rem;
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-switch svg { width: 15px; height: 15px; }
.lang-switch:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.is-solid .lang-switch, .is-plain .lang-switch { color: var(--c-ink-soft); border-color: var(--c-line); }
.is-solid .lang-switch:hover, .is-plain .lang-switch:hover {
    background: var(--c-sea); border-color: var(--c-sea); color: #fff;
}

.lang-switch--drawer {
    display: inline-flex;
    color: var(--c-ink);
    border-color: var(--c-line);
    margin-bottom: var(--s-6);
    text-transform: none;
    letter-spacing: .02em;
    font-size: .9rem;
}
.lang-switch--drawer:hover { background: var(--c-sea); border-color: var(--c-sea); color: #fff; }

/* ------------------------------------------------------------ Breakpoints */
@media (min-width: 560px) {
    .bookbar__fields { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field--full { grid-column: 1 / -1; }
    .gallery { columns: 2; }
    .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    :root { --header-h: 84px; }
    .usp { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
    .rooms { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
    .split--reverse .split__media { order: 2; }
    .direct { grid-template-columns: 1.15fr .85fr; gap: var(--s-7); }
    .split--form { grid-template-columns: 1.35fr .85fr; align-items: start; }
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
    .mobile-cta { display: none; }
    .wa-float { bottom: var(--s-5); }
}

@media (min-width: 992px) {
    .nav { display: block; }
    .burger { display: none; }
    .lang-switch { display: inline-flex; }
    .lang-switch--drawer { display: none; }
    .hero:not(.hero--page) { grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: 0; }
    .hero__media { min-height: 100%; }
    .hero__panel { padding-inline: clamp(2rem, 5vw, 4.5rem); padding-top: calc(var(--header-h) + 2rem); }
    .hero__inner { max-width: 560px; margin-inline: 0; }
    .bookbar__inner {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: var(--s-6);
        padding: var(--s-5) var(--s-6);
    }
    .bookbar__fields { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
    .usp { grid-template-columns: repeat(4, 1fr); }
    .rooms { grid-template-columns: repeat(3, 1fr); }
    .gallery { columns: 3; }
    .info-grid { grid-template-columns: repeat(3, 1fr); }
    .amenities { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (min-width: 1100px) {
    .header__cta { display: inline-flex; }
}

@media (min-width: 1200px) {
    .hero:not(.hero--page) { grid-template-columns: .95fr 1.05fr; }
    .site-header__inner { max-width: 1400px; }
    .nav__list { gap: var(--s-5); }
    .nav__link { font-size: .86rem; }
}

@media (min-width: 1360px) {
    .header__phone { display: block; }
}

/* Stampa */
@media print {
    .site-header, .drawer, .backdrop, .mobile-cta, .wa-float, .bookbar, .lightbox { display: none !important; }
    body { color: #000; }
}
