/* SICILIE ONLINE – Mediterranean: white, sea turquoise, navy, lemon. */
:root {
  --navy: #0d2a4c; --navy-2: #18406d; --sea: #14a3b8; --sea-dark: #0b7f91; --sky: #e8f7fa; --foam: #f4fbfc;
  --sand: #f6eee2; --lemon: #f5c84b; --coral: #ef7b5c; --ink: #1b2836; --muted: #5f6f80; --line: #dfe9ef;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 1.25rem; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.55 var(--body); display: flex; min-height: 100dvh; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); text-wrap: balance; letter-spacing: -.015em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.pad-y { padding-block: 2.2rem; }
.stack { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .strong { font-weight: 600; color: var(--navy); }
.mt { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mt3 { margin-top: 3.5rem; }
.w-full { width: 100%; } .push { margin-left: auto; } .emoji { font-size: 1.6rem; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* header / footer */
.site-h { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-h .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; padding-block: .7rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.15rem var(--display); color: var(--navy); }
.logo b { color: var(--sea); }
.nav { display: flex; gap: .2rem; overflow-x: auto; font-weight: 600; font-size: .9rem; order: 3; width: 100%; }
.nav a { padding: .4rem .8rem; border-radius: 99px; text-decoration: none; color: var(--navy); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--foam); }
.badge { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; margin-left: .35rem; border-radius: 99px; background: var(--sea); color: #fff; font-size: .72rem; }
.h-actions { margin-left: auto; display: flex; gap: .45rem; align-items: center; }
.lang { border: 1px solid var(--line); border-radius: 99px; padding: .35rem .7rem; font: 600 .85rem var(--body); color: var(--navy); background: #fff; }
@media (min-width: 760px) { .nav { order: 0; width: auto; } }
.site-f { margin-top: 5rem; background: var(--navy); color: rgba(255,255,255,.85); font-size: .9rem; }
.site-f .grid { display: grid; gap: 2rem; padding-block: 3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-f a { text-decoration: none; display: block; padding: .15rem 0; } .site-f a:hover { color: #fff; }
.site-f .copy { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 1rem; font-size: .75rem; color: rgba(255,255,255,.6); }
.lemon { color: var(--lemon); font-style: italic; }

/* buttons, inputs, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 99px; padding: .7rem 1.25rem; font: 600 .95rem var(--body); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background-color .15s; background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-2); } .btn:active { transform: scale(.97); }
.btn-sea { background: var(--sea); } .btn-sea:hover { background: var(--sea-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); } .btn-ghost:hover { background: var(--foam); }
.btn-on { background: var(--sky); color: var(--sea-dark); border-color: rgba(20,163,184,.3); } .btn-on:hover { background: var(--sky); }
.btn-wa { background: #25d366; } .btn-wa:hover { background: #1fb457; }
.btn-danger { background: var(--coral); }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.big-btn { padding: .95rem 1.2rem; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--navy); min-width: 0; }
.input { width: 100%; border: 1px solid var(--line); border-radius: .8rem; padding: .65rem .85rem; font: 400 .95rem var(--body); color: var(--ink); background: #fff; }
.input:focus { outline: 2px solid var(--sea); border-color: transparent; }
textarea.input { min-height: 5.5rem; resize: vertical; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; }
.check input { margin-top: .25rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 99px; padding: .15rem .65rem; font-size: .75rem; font-weight: 600; background: var(--sky); color: var(--sea-dark); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chips .chip { font-size: .85rem; padding: .25rem .75rem; }
.chip-demo { background: var(--lemon); color: #3a2c00; letter-spacing: .06em; }
.chip-warn { background: #fdeadf; color: #a3401f; } .chip-ok { background: #def5e7; color: #1d6b3d; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-dark); }
.form-msg { font-size: .88rem; font-weight: 600; color: var(--sea-dark); min-height: 0; }
.form-msg.err { color: #c2502d; }
.note-lemon { background: rgba(245,200,75,.25); border-radius: 1rem; padding: .75rem 1rem; font-size: .9rem; color: var(--navy); margin: 1rem 0; }
.note-sky { background: var(--sky); border-radius: 1rem; padding: .75rem 1rem; font-weight: 600; color: var(--sea-dark); }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.pad { padding: 1.25rem; } .foam { background: var(--foam); } .sand { background: var(--sand); }
.grid-cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid3 { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.prop { display: flex; flex-direction: column; overflow: hidden; }
.prop-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sky); }
.prop-media img, .prop-media .fill { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop:hover .prop-media img, .prop:hover .prop-media .fill { transform: scale(1.05); }
.prop-tags { position: absolute; left: .75rem; top: .75rem; display: flex; gap: .35rem; }
.prop-fav { position: absolute; right: .75rem; top: .75rem; }
.fav-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 99px; border: 0; background: rgba(255,255,255,.95); color: var(--navy); box-shadow: 0 4px 14px rgba(13,42,76,.18); cursor: pointer; transition: transform .15s; }
.fav-icon:hover { transform: scale(1.1); } .fav-icon.on { color: var(--coral); }
.prop-price { position: absolute; left: .75rem; bottom: .75rem; background: rgba(255,255,255,.96); border-radius: 99px; padding: .25rem .8rem; font: 600 1.1rem var(--display); color: var(--navy); box-shadow: 0 4px 14px rgba(13,42,76,.15); }
.prop-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; flex: 1; }
.prop-loc { font-size: .88rem; font-weight: 600; color: var(--sea-dark); } .prop-loc.big { font-size: 1rem; margin-top: .4rem; }
.prop-body h3 a { text-decoration: none; } .prop-body h3 a:hover { text-decoration: underline; }
.prop-facts { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.prop-actions { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
@media (prefers-reduced-motion: no-preference) {
  .lift { transition: transform .25s, box-shadow .25s; } .lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(13,42,76,.35); }
  .rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; } @keyframes rise { from { transform: translateY(14px); opacity: .2; } }
  .wave { animation: wave 9s ease-in-out infinite alternate; } @keyframes wave { to { transform: translateX(-40px); } }
}

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.45) 55%, rgba(255,255,255,0)); }
.hero .wrap { min-height: 540px; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding-block: 4rem; }
.hero h1 { max-width: 15ch; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; text-transform: uppercase; line-height: 1.04; }
.hero .sub { max-width: 34rem; font-size: 1.15rem; color: rgba(13,42,76,.85); }
.hero .badge-pill { width: fit-content; background: rgba(255,255,255,.92); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.sec-head a { color: var(--sea-dark); font-weight: 600; text-decoration: none; }
.band { background: var(--foam); padding-block: 4rem; margin-top: 4.5rem; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 99px; background: var(--navy); color: #fff; font: 700 1.1rem var(--display); }
.pill-link { border: 1px solid var(--line); border-radius: 99px; padding: .7rem 1.2rem; font-weight: 600; color: var(--navy); text-decoration: none; background: #fff; }
.pill-link:hover { border-color: var(--sea); } .pill-link span { color: var(--muted); font-size: .85rem; margin-left: .3rem; }
.svc-top { padding: 1.5rem; border-radius: var(--r) var(--r) 0 0; } .svc-top.dark { background: var(--navy); color: #fff; } .svc-top.dark h3 { color: #fff; }
.svc-top.light { background: var(--sky); }
.svc-price { font: 700 2.4rem var(--display); margin-top: .5rem; }
.ticks { list-style: none; padding: 1.5rem; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.ticks li::before { content: "✔"; color: var(--sea); margin-right: .55rem; }

/* filters */
.filters { display: grid; gap: .75rem; padding: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 1.4rem; }
.filters .wide { grid-column: span 2; } @media (max-width: 520px) { .filters .wide { grid-column: auto; } }
details.filter-wrap > summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }

/* property detail */
.back { color: var(--sea-dark); font-weight: 600; text-decoration: none; font-size: .9rem; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem; align-items: flex-start; }
.detail-head h1 { margin-top: .6rem; max-width: 30ch; }
.price-big { font: 700 2.3rem var(--display); color: var(--navy); }
.gallery { display: grid; gap: .7rem; grid-template-columns: repeat(4, 1fr); margin-top: 1.4rem; }
.gallery img { border-radius: 1rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }
.gallery img.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.hero-art { width: 100%; aspect-ratio: 21/9; border-radius: 1rem; margin-top: 1.4rem; }
.detail-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1fr 360px; } .sticky { position: sticky; top: 5.5rem; align-self: start; } }
.prose { white-space: pre-line; max-width: 65ch; line-height: 1.7; margin-top: .6rem; }
.dl { margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.dl-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--navy); }
.dl a { color: var(--sea-dark); }

/* lists, tables, chat */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.progress { display: flex; gap: 3px; margin-top: 1rem; } .progress span { height: 6px; flex: 1; border-radius: 99px; background: var(--line); } .progress span.on { background: var(--sea); }
.pay-due { margin-top: .8rem; border: 1px solid rgba(239,123,92,.45); background: #fff6f2; border-radius: 1rem; padding: .9rem 1rem; font-size: .9rem; }
.appt { margin-top: .8rem; background: var(--sky); border-radius: 1rem; padding: .7rem 1rem; font-size: .9rem; color: var(--navy); }
.tbl { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
th { text-align: left; background: var(--foam); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .7rem; }
td { padding: .7rem; border-top: 1px solid var(--line); vertical-align: top; } td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.chat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; max-height: 420px; overflow-y: auto; }
.chat li { max-width: 80%; border-radius: 1rem; padding: .6rem .9rem; font-size: .9rem; white-space: pre-line; }
.chat .them { background: var(--sky); color: var(--navy); } .chat .me { margin-left: auto; background: var(--navy); color: #fff; }
.chat time { display: block; font-size: .7rem; opacity: .6; margin-top: .2rem; }
.media-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.media-grid img, .media-grid video, .media-grid .doc { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sky); border-radius: var(--r) var(--r) 0 0; display: grid; place-items: center; font-size: 2.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi .v { font: 600 1.9rem var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.auth { max-width: 440px; margin: 0 auto; }

/* cookie bar */
.ck-bar { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 18px 40px -18px rgba(13,42,76,.4); padding: 1rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .9rem; }
.ck-bar p { flex: 1 1 260px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 99px; font-weight: 600; z-index: 70; font-size: .9rem; }
