/* ==========================================================================
   Coral Property — grafica del sito (restyling novembre 2026)

   Due materiali, due famiglie di colore:
   · GRANITO (caldo): pietra chiara per le pause, granito rosa per i piccoli segnali.
   · GRAFITE (profondo): hero, sezioni per i proprietari, chiusura delle pagine.
   Il BIANCO resta il fondo delle foto, perché i colori delle case non vengano alterati.
   Angoli vivi (0 px) ovunque. Titoli in Instrument Serif, tutto il resto in Instrument Sans.
   ========================================================================== */

/* 1. Caratteri (ospitati sul sito: nessuna richiesta a server esterni) */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Carattere di riserva con la stessa larghezza del titolo: la pagina non "salta" mentre il carattere si carica */
@font-face { font-family: 'Instrument Serif Riserva'; src: local('Times New Roman'), local('Times'), local('Liberation Serif'); size-adjust: 83%; }

/* 2. Colori e misure */
:root {
  --bianco: #FFFFFF;
  --pietra: #F4EDE8;            /* granito chiarissimo: pause tra le sezioni */
  --pietra-linea: #E2D5CC;
  --granito: #B0786A;           /* granito rosa del triskele: filetti, segni, mai testi piccoli */
  --granito-profondo: #8C5446;  /* granito per testi e numeri (leggibile su bianco e su pietra) */
  --rosa-chiaro: #E0B3A4;       /* granito su fondo mare */
  --mare: #272423;              /* grafite: fondo scuro del sito (nome tecnico invariato) */
  --mare-2: #373331;
  --mare-3: #1C1A19;
  --mare-rgb: 39, 36, 35;       /* lo stesso mare, per ombre e trasparenze */
  --scrim-rgb: 20, 18, 17;       /* velo scuro sopra le foto */
  --ink: #232020;               /* testi */
  --ink-2: #55504E;
  --ink-3: #66605D;
  --linea: #E7E3E0;
  --nebbia: #F3F1EF;            /* superfici segnaposto */
  --su-mare: #F6F2EE;
  --su-mare-2: #C6BFBB;
  --su-mare-3: #ABA39E;
  --linea-mare: rgba(255, 255, 255, .16);
  --serif: 'Instrument Serif', 'Instrument Serif Riserva', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 1180px) { :root { --header-h: 62px; } }

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); line-height: 1.02; letter-spacing: -.012em; }
h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--granito-profondo); outline-offset: 3px; }
::selection { background: var(--mare); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--mare); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 550; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* 4. Sezioni e fondi */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section.tight { padding-top: clamp(20px, 2.4vw, 32px); }
/* Due sezioni bianche di seguito: basta lo spazio di quella sopra */
.section--joined { padding-top: 0; }
.tone-pietra { background: var(--pietra); }
.tone-mare { background: var(--mare); color: var(--su-mare); }
.tone-mare :focus-visible { outline-color: var(--rosa-chiaro); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 4.6vw, 68px); }
.section-head h2 { font-size: clamp(36px, 4.4vw, 64px); max-width: 15em; }
.section-head--inner { margin-top: clamp(64px, 7vw, 104px); }
.section-lead { margin-top: 22px; max-width: 34em; font-size: 18px; color: var(--ink-2); }
.tone-mare .section-lead { color: var(--su-mare-2); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14.5px; font-weight: 500; color: var(--ink-3); }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--granito); }
.tone-mare .eyebrow, .page-head--mare .eyebrow, .band .eyebrow, .hero .eyebrow { color: var(--rosa-chiaro); }
.label { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.missing { color: var(--granito-profondo); font-size: 13px; font-weight: 600; }
.draftbar { background: var(--granito-profondo); color: #fff; text-align: center; padding: 8px 0; }
.draftbar .label { color: #fff; }

/* 5. Pulsanti e link */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 28px;
  font-family: var(--sans); font-size: 15px; font-weight: 550; line-height: 1.2; letter-spacing: .005em; text-align: center; text-decoration: none;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-solid { --bg: var(--mare); --fg: #fff; --bd: var(--mare); }
.btn-solid:hover { --bg: var(--granito-profondo); --fg: #fff; --bd: var(--granito-profondo); }
.btn-white { --bg: #fff; --fg: var(--mare); --bd: #fff; }
.btn-white:hover { --bg: var(--rosa-chiaro); --fg: var(--mare); --bd: var(--rosa-chiaro); }
.btn-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn-light:hover { --bg: #fff; --fg: var(--mare); --bd: #fff; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn:disabled { opacity: .6; cursor: default; }
.link-ar { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; font-size: 15px; font-weight: 550; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-ar .ic { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-ar:hover { color: var(--granito-profondo); }
.tone-mare .link-ar:hover, .band .link-ar:hover { color: var(--rosa-chiaro); }
.link-ar:hover .ic { transform: translateX(5px); }
.linkbtn { background: none; border: 0; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.linkbtn:hover { color: var(--granito-profondo); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 6. Intestazione e menu */
.site-header {
  --h-fg: var(--ink); --h-bg: var(--bianco); --h-line: transparent;
  --h-solid-bg: var(--mare); --h-solid-fg: #fff; --h-ghost: var(--ink);
  position: sticky; top: 0; z-index: 40;
  background: var(--h-bg); color: var(--h-fg); border-bottom: 1px solid var(--h-line);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
html.is-scrolled .site-header { --h-line: var(--linea); }
/* Sulle pagine che si aprono su fondo scuro (home, pagine per i proprietari) l'intestazione è trasparente finché non si scorre */
body.top-dark .site-header { position: fixed; left: 0; right: 0; --h-fg: #fff; --h-bg: transparent; --h-solid-bg: #fff; --h-solid-fg: var(--mare); --h-ghost: rgba(255, 255, 255, .6); }
html.is-scrolled body.top-dark .site-header { --h-fg: var(--ink); --h-bg: var(--bianco); --h-solid-bg: var(--mare); --h-solid-fg: #fff; --h-ghost: var(--ink); }
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--header-h); max-width: 1760px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.brand { justify-self: start; display: block; }
.brand .logo { height: 30px; width: auto; }
.brand .logo-light { display: none; }
body.top-dark .brand .logo-dark { display: none; }
body.top-dark .brand .logo-light { display: block; }
html.is-scrolled body.top-dark .brand .logo-dark { display: block; }
html.is-scrolled body.top-dark .brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav > a, .has-sub > a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; text-decoration: none; white-space: nowrap; }
.nav > a::after, .has-sub > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav > a:hover::after, .has-sub:hover > a::after, .has-sub:focus-within > a::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.has-sub { position: relative; }
.has-sub:hover > a .ic, .has-sub:focus-within > a .ic { transform: rotate(180deg); }
.subnav { position: absolute; left: 50%; top: 100%; z-index: 5; padding-top: 14px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav-in { min-width: 270px; padding: 8px; background: var(--bianco); color: var(--ink); border: 1px solid var(--linea); box-shadow: 0 28px 56px -20px rgba(var(--mare-rgb), .28); }
.subnav a { display: block; padding: 13px 14px; text-decoration: none; }
.subnav a:hover { background: var(--pietra); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; gap: 2px; margin-right: 8px; font-size: 14px; font-weight: 500; }
.lang a { padding: 8px 6px; text-decoration: none; opacity: .55; }
.lang a:hover, .lang a[aria-current="true"] { opacity: 1; }
.lang span { opacity: .4; font-size: 12px; }
.site-header .btn-ghost { --bg: transparent; --fg: var(--h-fg); --bd: var(--h-ghost); }
.site-header .btn-ghost:hover { --bg: var(--h-solid-bg); --fg: var(--h-solid-fg); --bd: var(--h-solid-bg); }
.site-header .btn-solid { --bg: var(--h-solid-bg); --fg: var(--h-solid-fg); --bd: var(--h-solid-bg); }
.site-header .btn-solid:hover { --bg: var(--granito-profondo); --fg: #fff; --bd: var(--granito-profondo); }
.site-header .btn { white-space: nowrap; }
.menu-btn, .menu-close, .lang-m { display: none; }
.mnav { display: none; }
@media (min-width: 1181px) and (max-width: 1400px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav { justify-self: center; gap: 0; }
  .nav > a, .has-sub > a { padding-inline: 11px; }
  .nav > a::after, .has-sub > a::after { left: 11px; right: 11px; }
  .header-tools { gap: 8px; }
  .lang { margin-right: 2px; }
}

@media (max-width: 1180px) {
  .header-row { gap: 10px; }
  .site-header .nav, .header-tools { display: none; }
  .brand { justify-self: center; grid-column: 2; }
  .brand .logo { height: 22px; }
  .lang-m { display: flex; justify-self: end; grid-column: 3; margin: 0; }
  .menu-btn { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; }
  .menu-btn span:last-child { width: 17px; }

  /* Menu a tutto schermo */
  .mnav {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--mare); color: var(--su-mare);
    padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(var(--gutter), env(safe-area-inset-left, 0px));
    opacity: 0; transform: translateY(-10px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .mnav[hidden] { display: none; }
  .mnav.is-open { opacity: 1; transform: none; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  html.menu-open .wa-float { display: none; }
  .mnav-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; height: var(--header-h); flex: none; }
  .mnav-brand { justify-self: center; }
  .mnav-brand img { height: 22px; width: auto; }
  .menu-close { justify-self: start; display: block; position: relative; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
  .menu-close span { position: absolute; left: 0; top: 21px; width: 26px; height: 1.5px; background: currentColor; }
  .menu-close span:first-child { transform: rotate(45deg); }
  .menu-close span:last-child { transform: rotate(-45deg); }
  .mnav-lang { justify-self: end; margin: 0; }
  .mnav-links ol { list-style: none; margin: 0; padding: 18px 0 0; }
  .mnav-links li { border-bottom: 1px solid var(--linea-mare); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 50ms + 60ms); }
  .mnav.is-open .mnav-links li { opacity: 1; transform: none; }
  .mnav-links li > a, .mnav-acc {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0;
    background: none; border: 0; color: #fff; text-align: left; text-decoration: none; cursor: pointer;
    font-family: var(--serif); font-size: clamp(34px, 9.5vw, 46px); line-height: 1.05; letter-spacing: -.012em;
  }
  .mnav-links li > a[aria-current="page"] { color: var(--rosa-chiaro); }
  .mnav-plus { position: relative; flex: none; width: 18px; height: 18px; }
  .mnav-plus::before, .mnav-plus::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .mnav-plus::after { transform: rotate(90deg); }
  .mnav-acc[aria-expanded="true"] .mnav-plus::after { transform: rotate(0deg); }
  .mnav-sub { display: grid; padding: 0 0 18px; }
  .mnav-sub[hidden] { display: none; }
  .mnav-sub a { padding: 9px 0; color: var(--su-mare-2); text-decoration: none; font-size: 17px; }
  .mnav-sub a[aria-current="page"], .mnav-sub a:hover { color: #fff; }
  .mnav-cta { display: grid; gap: 10px; margin-top: 28px; }
  .mnav-foot { display: grid; gap: 6px; margin-top: auto; padding-top: 32px; font-size: 14.5px; color: var(--su-mare-3); }
  .mnav-foot a { color: var(--su-mare); text-decoration: none; }
}

/* 7. Hero della home */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(600px, 100svh, 1040px); padding-top: calc(var(--header-h) + 32px); background: var(--mare-3); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--scrim-rgb), .6) 0%, rgba(var(--scrim-rgb), 0) 22%),
    linear-gradient(0deg, rgba(var(--scrim-rgb), .95) 0%, rgba(var(--scrim-rgb), .74) 26%, rgba(var(--scrim-rgb), .22) 52%, rgba(var(--scrim-rgb), 0) 68%);
}
.hero-in { position: relative; z-index: 1; padding-bottom: clamp(24px, 3vw, 44px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 32px clamp(32px, 5vw, 88px); }
.hero h1 { font-size: clamp(40px, 6.1vw, 100px); line-height: .96; letter-spacing: -.018em; }
.hero-side { padding-bottom: 6px; }
.hero-sub { max-width: 30em; font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.5; color: #E7EEED; }
.hero .actions { margin-top: 24px; }
.hero .cta-search { display: none; }
/* Ricerca agganciata al fondo della foto */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; margin-top: clamp(26px, 3vw, 44px); border: 1px solid rgba(255, 255, 255, .28); background: rgba(var(--scrim-rgb), .46); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.qfield { position: relative; min-width: 0; border-right: 1px solid rgba(255, 255, 255, .2); }
.qfield label { position: absolute; left: 22px; top: 15px; font-size: 13px; font-weight: 500; color: var(--rosa-chiaro); pointer-events: none; }
.qfield select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 76px; padding: 34px 48px 10px 22px; border: 0; background-color: transparent; color: #fff; font-size: 16.5px; font-weight: 500; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.qfield select option { color: #232020; background: #fff; }
.qfield select:hover { background-color: rgba(255, 255, 255, .07); }
.qfield select:focus-visible { outline: 2px solid var(--rosa-chiaro); outline-offset: -2px; }
.quick .btn { min-height: 76px; padding-inline: 36px; border: 0; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero h1 { font-size: clamp(40px, 8.4vw, 76px); }
  .hero-sub { max-width: 34em; }
}
/* Telefoni: la foto resta intera in alto, il testo poggia sul mare subito sotto */
@media (max-width: 860px) {
  .hero { --foto: min(54svh, 520px); display: block; min-height: 0; padding-top: calc(var(--foto) - 104px); }
  .hero-bg { inset: 0 0 auto 0; height: var(--foto); object-position: center 40%; }
  .hero::after { background: linear-gradient(180deg, rgba(var(--scrim-rgb), .58) 0, rgba(var(--scrim-rgb), 0) 120px), linear-gradient(180deg, rgba(var(--scrim-rgb), 0) calc(var(--foto) - 250px), rgba(var(--scrim-rgb), .82) calc(var(--foto) - 70px), var(--mare-3) var(--foto)); }
  .hero .quick { display: none; }
  .hero .cta-search { display: inline-flex; }
  .hero .actions .btn { flex: 1 1 200px; }
  .hero-in { padding-bottom: 28px; }
}
/* L'unico movimento non richiesto dal visitatore: la foto e il titolo che si assestano all'apertura */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: hero-foto 2.4s var(--ease) both; }
  .hero-title, .hero-side, .hero .quick { animation: hero-testo 1.1s var(--ease) both; }
  .hero-title { animation-delay: .1s; }
  .hero-side { animation-delay: .24s; }
  .hero .quick { animation-delay: .38s; }
}
@keyframes hero-foto { from { transform: scale(1.07); } to { transform: none; } }
@keyframes hero-testo { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 8. Intestazioni delle pagine interne */
.page-head { padding-block: clamp(52px, 6.4vw, 104px) clamp(44px, 5.2vw, 80px); background: var(--pietra); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 88px); max-width: 13.5em; }
.page-head .lead { margin-top: clamp(20px, 2vw, 28px); max-width: 35em; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); }
.page-head .actions { margin-top: clamp(28px, 3vw, 40px); }
.page-head .lead--small { font-size: 15px; color: var(--ink-3); }
.page-head--plain { background: var(--bianco); padding-bottom: clamp(20px, 2.4vw, 32px); }
.page-head--404 { padding-bottom: clamp(88px, 12vw, 180px); }
.page-head--404 .lead + .lead { margin-top: 8px; }
.page-head--mare { background: var(--mare); color: var(--su-mare); padding-top: calc(var(--header-h) + clamp(52px, 6.4vw, 104px)); }
.page-head--mare .lead { color: var(--su-mare-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 22px; font-size: 14.5px; color: var(--ink-3); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs .sep { width: 14px; height: 1px; background: currentColor; opacity: .45; }
.zone-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.zone-links a { padding: 9px 15px; border: 1px solid var(--linea); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: border-color .25s, background-color .25s, color .25s; }
.zone-links a:hover { border-color: var(--ink); }
.zone-links a[aria-current="page"] { background: var(--mare); border-color: var(--mare); color: #fff; }
.trust { list-style: none; margin: clamp(26px, 2.6vw, 36px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 16px; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .ic { width: 18px; height: 18px; color: var(--granito-profondo); }
.page-head--mare .trust .ic { color: var(--rosa-chiaro); }

/* 9. Schede immobile */
.grid-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(40px, 4.2vw, 60px) clamp(20px, 2.4vw, 32px); }
.card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.card .ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--nebbia), #E9E5E2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .ph img { transform: scale(1.045); }
.badge { position: absolute; left: 12px; top: 12px; padding: 7px 11px; background: var(--bianco); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1; }
.badge-rent { background: var(--mare); color: #fff; }
.ph-note { position: absolute; inset: auto 14px 12px 14px; font-size: 12.5px; color: var(--ink-3); }
.card-body { padding-top: 18px; }
.card-loc { font-size: 14.5px; color: var(--ink-3); }
.card h3 { margin-top: 6px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; letter-spacing: -.008em; transition: color .3s var(--ease); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card:hover h3 { color: var(--granito-profondo); }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .ic { width: 18px; height: 18px; color: var(--granito); }
.price { margin-top: 14px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card[data-contract="rent"] .price { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.empty { max-width: 40em; padding: 40px; border: 1px solid var(--linea); color: var(--ink-2); }

/* 10. Elenchi: filtri */
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.seg-tabs { position: relative; display: inline-flex; flex: none; gap: 2px; min-width: 0; padding: 4px; border: 1px solid var(--linea); }
.seg-tabs input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg-tabs label { display: flex; align-items: center; height: 48px; padding: 0 18px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.seg-tabs label:hover { color: var(--ink); }
.seg-tabs input:checked + label { background: var(--mare); color: #fff; }
.seg-tabs input:focus-visible + label { outline: 2px solid var(--granito-profondo); outline-offset: 2px; }
.filters { display: flex; flex: 1 1 760px; flex-wrap: wrap; gap: 10px; min-width: 0; }
.ffield { position: relative; flex: 1 1 148px; min-width: 0; }
.ffield label { position: absolute; left: 15px; top: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); pointer-events: none; }
.ffield select, .ffield input {
  appearance: none; -webkit-appearance: none; width: 100%; height: 58px; padding: 26px 36px 6px 14px;
  border: 1px solid var(--linea); background-color: var(--bianco); color: var(--ink); font-size: 15px; font-weight: 500; text-overflow: ellipsis;
  transition: border-color .25s, box-shadow .25s;
}
.ffield select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232020' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.ffield input { padding-right: 14px; }
.ffield input::placeholder { color: var(--ink-3); font-weight: 400; opacity: 1; }
.ffield input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ffield select:hover, .ffield input:hover { border-color: var(--ink-3); }
.ffield select:focus-visible, .ffield input:focus-visible { outline: none; border-color: var(--mare); box-shadow: 0 0 0 3px rgba(var(--mare-rgb), .14); }
.search-meta { display: flex; align-items: center; gap: 18px; margin-left: auto; padding-left: 8px; min-height: 46px; white-space: nowrap; }
.count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .seg-tabs { display: flex; flex: 1 1 100%; }
  .seg-tabs label { flex: 1; justify-content: center; padding: 0 8px; }
  .filters-toggle { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; background: var(--bianco); border: 1px solid var(--ink); color: var(--ink); font-size: 15px; font-weight: 550; cursor: pointer; }
  .filters-toggle .ic { width: 18px; height: 18px; }
  .filters-toggle[aria-expanded="true"] { background: var(--mare); border-color: var(--mare); color: #fff; }
  .filters { display: none; flex: 1 1 100%; order: 3; }
  .filters.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters.is-open .ffield:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.rnote { margin-top: 32px; }

/* 11. Scheda immobile */
.prop-top { padding-block: 22px 18px; }
.prop-top .crumbs { margin: 0; }
.gallery-wrap { position: relative; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; height: clamp(380px, 64vh, 680px); }
.gallery figure { position: relative; min-height: 0; margin: 0; overflow: hidden; background: var(--nebbia); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery .g-extra { display: none; }
.gallery.g-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.g-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery.g-2 figure:first-child { grid-row: auto; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; }
.gallery.g-4 figure:nth-child(2) { grid-column: span 2; }
.g-more { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; background: var(--bianco); color: var(--ink); border: 0; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.g-more:hover { background: var(--mare); color: #fff; }
.g-more .ic { width: 18px; height: 18px; }
.g-count { display: none; }
.ph-fig { background: linear-gradient(135deg, var(--nebbia), #E9E5E2); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 410px); align-items: start; gap: clamp(40px, 6.4vw, 104px); padding-block: clamp(36px, 4.2vw, 60px) clamp(72px, 8vw, 128px); }
.detail article { min-width: 0; }
.prop-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15.5px; color: var(--ink-3); }
.prop-loc .ic { width: 18px; height: 18px; color: var(--granito); }
.prop-loc .ref { padding-left: 12px; border-left: 1px solid var(--linea); }
.prop-loc .ref:first-child { padding-left: 0; border-left: 0; }
.detail h1 { margin-top: 12px; font-size: clamp(38px, 4.6vw, 68px); }
.keyfacts { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; display: flex; flex-wrap: wrap; border-block: 1px solid var(--linea); }
.keyfacts li { display: flex; align-items: center; gap: 14px; padding: 20px 0; margin-right: 32px; padding-right: 32px; border-right: 1px solid var(--linea); }
.keyfacts li:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.keyfacts .ic { width: 26px; height: 26px; color: var(--granito); stroke-width: 1.3; }
.keyfacts b { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.keyfacts span { display: block; font-size: 13.5px; color: var(--ink-3); }
.desc { max-width: 41em; margin-top: clamp(28px, 3vw, 40px); font-size: 17.5px; line-height: 1.72; color: var(--ink-2); white-space: pre-line; }
.desc-note { margin-top: clamp(28px, 3vw, 40px); }
.desc-note + .desc { margin-top: 12px; }
.sub-h { margin-top: clamp(40px, 4.4vw, 60px); font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; max-width: 41em; }
.features li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linea); font-size: 16px; }
.features .ic { width: 18px; height: 18px; color: var(--granito); }
.aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 22px; padding: clamp(24px, 2.4vw, 36px); border: 1px solid var(--linea); }
.aside-price { font-family: var(--serif); font-size: clamp(38px, 3.4vw, 48px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.aside-price.is-text { font-size: 30px; line-height: 1.1; }
.aside-cta { display: grid; gap: 10px; }
.spec { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--linea); }
.spec dt { color: var(--ink-3); }
.spec dd { text-align: right; font-weight: 500; }
.xsell { padding-top: 20px; border-top: 1px solid var(--linea); font-size: 15px; color: var(--ink-2); }
.xsell .link-ar { margin-top: 10px; color: var(--ink); }
/* Barra fissa in basso su telefono: prezzo e richiesta sempre a portata di dito */
.prop-bar { display: none; }
@media (max-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .prop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bianco); border-top: 1px solid var(--linea); box-shadow: 0 -12px 32px -20px rgba(var(--mare-rgb), .35); }
  .prop-bar-price { flex: 1; min-width: 0; line-height: 1.2; }
  .prop-bar-price b { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .prop-bar-price span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prop-bar .btn { min-height: 48px; padding-inline: 18px; }
  .prop-bar .btn-icon { flex: none; width: 48px; padding: 0; }
  .prop-bar .btn-grow { flex: 1; }
  body.has-bar { padding-bottom: calc(69px + env(safe-area-inset-bottom, 0px)); }
  body.has-bar .wa-float { display: none; }
}
@media (max-width: 760px) {
  .prop-top { padding-block: 14px 12px; }
  .gallery-wrap { margin-inline: calc(-1 * var(--gutter)); }
  .gallery, .gallery.g-1, .gallery.g-2, .gallery.g-3 { display: flex; height: auto; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure, .gallery .g-extra { display: block; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .gallery figure:hover img { transform: none; }
  .g-more { display: none; }
  .g-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: block; padding: 6px 10px; background: rgba(var(--scrim-rgb), .78); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
  .keyfacts li { flex: 1 1 40%; margin-right: 0; padding-right: 12px; border-right: 0; }
  .keyfacts li:nth-child(n+3) { border-top: 1px solid var(--linea); }
}

/* Visore foto */
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: rgba(var(--scrim-rgb), .97); }
.lightbox img { max-width: calc(100% - 140px); max-height: 84vh; width: auto; object-fit: contain; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.lb-btn:hover { background: #fff; color: var(--mare); border-color: #fff; }
.lb-btn .ic { width: 22px; height: 22px; }
.lightbox .lb-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-prev .ic { transform: rotate(180deg); }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); text-align: center; color: var(--su-mare-2); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .lightbox { padding: 0; }
  .lightbox img { max-width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); transform: none; }
  .lb-count { bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); }
}
/* Telefono in orizzontale: foto a tutto schermo */
@media (orientation: landscape) and (max-height: 520px) {
  .lightbox { padding: 0; background: #000; }
  .lightbox img { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100dvh; object-fit: contain; }
  .lb-btn { border-color: transparent; background: rgba(0, 0, 0, .4); }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-count { bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
}
@media (orientation: landscape) and (max-height: 520px) and (hover: none) {
  .site-header, body.top-dark .site-header { position: static; }
  .gallery-wrap { margin-inline: calc(-1 * var(--gutter)); }
  .gallery, .gallery.g-1, .gallery.g-2, .gallery.g-3 { display: flex; height: auto; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #000; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure, .gallery figure:first-child, .gallery .g-extra { display: block; flex: 0 0 100%; height: 100vh; height: 100svh; aspect-ratio: auto; scroll-snap-align: center; background: #000; }
  .gallery img { object-fit: contain; }
  .g-more { display: none; }
}

/* 12. Blocchi di contenuto: passi, valori, elenchi, domande */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: passo; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { position: relative; counter-increment: passo; padding: 30px 32px 0 0; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(passo); display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 52px; line-height: .9; color: var(--granito-profondo); }
.steps li::after { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--ink); }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.tone-mare .steps li { border-top-color: var(--linea-mare); }
.tone-mare .steps li::before { color: var(--rosa-chiaro); }
.tone-mare .steps li::after { background: var(--rosa-chiaro); }
.tone-mare .steps p { color: var(--su-mare-2); }
.steps.compact { grid-template-columns: minmax(0, 1fr); gap: 0; }
.steps.compact li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 20px 0; border-top: 1px solid var(--linea); }
.steps.compact li::before { grid-row: span 2; margin: 0; font-size: 38px; }
.steps.compact li::after { display: none; }
.steps.compact p { grid-column: 2; margin-top: 4px; font-size: 15.5px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 22px 0 26px 22px; border-top: 0; border-left: 1px solid var(--ink); }
  .steps li:last-child { padding-bottom: 4px; }
  .steps li::after { left: -4px; top: 0; }
  .tone-mare .steps li { border-left-color: var(--linea-mare); }
  .steps.compact li { padding: 18px 0; border-left: 0; }
}
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(32px, 3.6vw, 56px) clamp(28px, 3.2vw, 48px); }
.value { padding-top: 22px; border-top: 1px solid var(--linea); }
.value h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.08; letter-spacing: -.008em; }
.value p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.tone-pietra .value { border-top-color: var(--pietra-linea); }
.tone-mare .value { border-top-color: var(--linea-mare); }
.tone-mare .value p { color: var(--su-mare-2); }
.proof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 4.4vw, 64px); }
/* "Cosa è incluso": un elenco da leggere come l'allegato di un mandato */
.incl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 88px); }
.incl-item { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 6px 24px; padding: 22px 0; border-top: 1px solid var(--linea); }
.incl-item dt { font-size: 18px; font-weight: 600; line-height: 1.3; }
.incl-item dd { margin: 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 900px) { .incl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .incl-item { grid-template-columns: minmax(0, 1fr); } }
.faq { max-width: 920px; border-bottom: 1px solid var(--pietra-linea); }
.faq details { border-top: 1px solid var(--pietra-linea); }
.faq summary { position: relative; display: block; padding: 24px 52px 24px 0; font-size: 19px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--granito-profondo); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--granito-profondo); }
.faq details p { max-width: 44em; padding: 0 0 26px; color: var(--ink-2); }
/* Servizi */
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px clamp(32px, 6vw, 104px); padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--linea); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail h2 { font-size: clamp(32px, 3.4vw, 48px); }
.service-detail p { max-width: 38em; font-size: 17.5px; color: var(--ink-2); }
.service-detail .link-ar { margin-top: 22px; }

/* 13. Sezione proprietari della home */
.owners-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.owners-intro h2 { font-size: clamp(40px, 5vw, 76px); max-width: 9.5em; }
.owners-intro .btn { margin-top: clamp(28px, 3vw, 40px); }
.door { display: grid; gap: 10px; padding: clamp(26px, 2.8vw, 38px) 0; border-top: 1px solid var(--linea-mare); color: inherit; text-decoration: none; }
.door-lab { font-size: 14.5px; font-weight: 500; color: var(--rosa-chiaro); }
.door h3 { font-family: var(--serif); font-size: clamp(30px, 2.9vw, 42px); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.door p:not(.door-lab) { max-width: 35em; font-size: 16.5px; color: var(--su-mare-2); }
.door-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 15px; font-weight: 550; color: #fff; }
.door-go .ic { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.door:hover h3 { color: var(--rosa-chiaro); }
.door:hover .door-go .ic { transform: translateX(6px); }
.door h3 { transition: color .3s var(--ease); }
.more-services { padding-top: 24px; border-top: 1px solid var(--linea-mare); font-size: 15.5px; color: var(--su-mare-2); }
.more-services a { color: #fff; white-space: nowrap; }
.more-services a:hover { color: var(--rosa-chiaro); }
@media (max-width: 900px) { .owners-grid { grid-template-columns: minmax(0, 1fr); } }

/* 14. Moduli */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.form-wrap--main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.form-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.form-intro h2 { font-size: clamp(36px, 4.2vw, 60px); }
.form-intro p:not(.eyebrow) { margin-top: 20px; max-width: 26em; color: var(--ink-2); }
.tone-mare .form-intro p:not(.eyebrow) { color: var(--su-mare-2); }
.vform { display: grid; gap: clamp(32px, 3.4vw, 44px); min-width: 0; padding: clamp(22px, 3.2vw, 48px); background: var(--bianco); color: var(--ink); border: 1px solid var(--linea); }
.tone-mare .vform { border-color: transparent; }
.fgroup { display: grid; gap: 20px; }
.fg-title { display: flex; align-items: baseline; gap: 14px; padding: 0 0 16px; border-bottom: 1px solid var(--linea); font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.fg-title span { color: var(--granito-profondo); }
.vform .missing { margin: 0; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.vgrid .wide { grid-column: 1 / -1; }
.vgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; min-width: 0; align-content: end; }
.field label, .flabel { font-size: 14.5px; font-weight: 550; line-height: 1.35; }
.field > input, .field > textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #CFC9C5; background: var(--bianco); color: var(--ink); font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.field > textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field > input::placeholder, .field > textarea::placeholder { color: #85807C; opacity: 1; }
.field > input:hover, .field > textarea:hover { border-color: var(--ink-3); }
.field > input:focus-visible, .field > textarea:focus-visible { outline: none; border-color: var(--mare); box-shadow: 0 0 0 3px rgba(var(--mare-rgb), .14); }
.field > input[aria-invalid="true"], .field > textarea[aria-invalid="true"] { border-color: #A8402F; box-shadow: 0 0 0 3px rgba(168, 64, 47, .12); }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--ink-3); }
.seg input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 22px; font-size: 15px; font-weight: 550; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.seg label + input + label { border-left: 1px solid var(--ink-3); }
.seg label:hover { background: var(--pietra); }
.seg input:checked + label { background: var(--mare); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--granito-profondo); outline-offset: 2px; }
.seg-3 { display: grid; }
.seg.sm label { min-height: 46px; padding-inline: 18px; }
.field .seg { display: grid; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mare); }
.check a { color: var(--ink); }
.consents { display: grid; gap: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-msg { font-size: 15px; font-weight: 500; }
.form-msg.err { color: #A8402F; }
.after h2 { font-size: clamp(30px, 2.8vw, 40px); margin-bottom: 14px; }
.after-wa { margin-top: 24px; }
.after-wa a { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.after-wa a:hover { color: var(--granito-profondo); }
.after-wa .ic { width: 20px; height: 20px; }
.after { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) {
  .form-wrap, .form-wrap--main { grid-template-columns: minmax(0, 1fr); }
  .form-intro, .after { position: static; }
}
@media (max-width: 640px) {
  .vgrid, .vgrid.two { grid-template-columns: minmax(0, 1fr); }
  .seg-3 label { padding-inline: 8px; }
  .form-actions .btn { width: 100%; }
}

/* 15. Chi siamo */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.statement { font-family: var(--serif); font-size: clamp(30px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -.012em; text-wrap: balance; }
.prose { display: grid; gap: 18px; max-width: 40em; font-size: 17.5px; color: var(--ink-2); }
.prose h2 { margin-top: 20px; font-size: 30px; color: var(--ink); }
.prose--legal { max-width: 46em; font-size: 16.5px; }
.prose--legal h2 { margin-top: 28px; font-size: 28px; }
.prose--legal h2:first-child { margin-top: 0; }
.prose a { color: var(--ink); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); max-width: 880px; }
.member { display: grid; gap: 22px; align-content: start; min-width: 0; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--nebbia); }
.member h3 { margin-top: 6px; font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.member-role { font-size: 14.5px; font-weight: 500; color: var(--granito-profondo); }
.member-bio { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 104px); }
.duo h2 { font-size: clamp(32px, 3.4vw, 48px); }
.duo p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
@media (max-width: 860px) { .about-intro, .duo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* 16. Journal */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(40px, 4.2vw, 60px) clamp(20px, 2.4vw, 32px); }
.post-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.post-ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--nebbia); }
.post-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-ph img { transform: scale(1.045); }
.post-season { margin-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--granito-profondo); }
.post-card h2, .post-card h3 { margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; transition: color .3s var(--ease); }
.post-card:hover h2, .post-card:hover h3 { color: var(--granito-profondo); }
.post-card p:not(.post-season) { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.article-top { padding-block: 26px 0; }
.article-head { padding-block: clamp(20px, 2.4vw, 32px) clamp(28px, 3vw, 44px); }
.article-head h1 { margin-top: 14px; font-size: clamp(40px, 5vw, 72px); }
.article-head .lead { margin-top: 24px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.article-hero { max-width: calc(1160px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--nebbia); }
.article-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.article-hero figcaption a { color: inherit; }
.article-body { padding-block: clamp(36px, 4vw, 56px) 24px; font-size: 18.5px; line-height: 1.72; }
.article-body p, .article-body ul { margin: 0 0 22px; color: var(--ink-2); }
.article-body h2 { margin: 56px 0 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.article-body h3 { margin: 36px 0 12px; font-size: 21px; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--granito); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--ink); text-decoration-color: var(--granito); }
.article-body a:hover { color: var(--granito-profondo); }
.sources { margin-bottom: clamp(56px, 6vw, 96px); padding-top: 26px; border-top: 1px solid var(--linea); }
.sources h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.sources ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.back .ic { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .3s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover .ic { transform: rotate(180deg) translateX(4px); }

/* 17. Contatti e pagine legali */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(32px, 4vw, 64px); }
.contact-grid .block { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--ink); }
.contact-grid .big { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-grid .big a { text-decoration: none; }
.contact-grid .big a:hover { color: var(--granito-profondo); }
.contact-grid .btn, .contact-grid .link-ar { justify-self: start; margin-top: 10px; }
.legal { max-width: 860px; }
.legal .spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); font-size: 16.5px; }
.legal .spec dd { text-align: left; }
.legal h2 { margin-top: 56px; font-size: 34px; }
.legal p { margin-top: 12px; }

/* 18. Fasce di chiusura e piè di pagina */
.band { background: var(--mare); color: var(--su-mare); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 32px 48px; padding-block: clamp(64px, 7.4vw, 112px); }
.band h2 { font-size: clamp(36px, 4.6vw, 68px); max-width: 12em; }
.band p:not(.eyebrow) { max-width: 34em; margin-top: 18px; font-size: 18px; color: var(--su-mare-2); }
.band .actions { justify-content: flex-end; }
.band-mark { width: 56px; height: auto; margin-bottom: 26px; }
.band--light { background: var(--bianco); color: var(--ink); border-top: 1px solid var(--linea); }
.band--light p:not(.eyebrow) { color: var(--ink-2); }
.band--light .eyebrow { color: var(--ink-3); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } .band .actions { justify-content: flex-start; } }
.site-footer { background: var(--mare); color: var(--su-mare-2); font-size: 15.5px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); padding-block: clamp(52px, 5.6vw, 84px) clamp(44px, 4.6vw, 64px); }
/* Quando la pagina finisce già sul mare, un filo separa l'ultima sezione dal piè di pagina */
main:has(> :is(.band:not(.band--light), .tone-mare):last-child) + .site-footer .footer-top { border-top: 1px solid var(--linea-mare); }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 15px; color: var(--su-mare-3); }
.footer-top h4 { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--su-mare-3); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-top a { color: var(--su-mare); text-decoration: none; }
.footer-top a:hover { color: var(--rosa-chiaro); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 22px 26px; border-top: 1px solid var(--linea-mare); font-size: 13.5px; color: var(--su-mare-3); }
.footer-legal p { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* 19. WhatsApp sempre a portata */
.wa-float { position: fixed; z-index: 30; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--mare); color: #fff; border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 14px 30px -14px rgba(var(--scrim-rgb), .7); transition: background-color .3s var(--ease); }
.wa-float:hover { background: var(--granito-profondo); }
body.top-dark .wa-float { transition: background-color .3s var(--ease), opacity .3s var(--ease), visibility .3s; }
html:not(.is-scrolled) body.top-dark .wa-float { opacity: 0; visibility: hidden; }
.wa-float .ic { width: 24px; height: 24px; }

/* 20. Su telefono le selezioni di case e articoli scorrono in orizzontale, col dito */
@media (max-width: 760px) {
  .grid-props.rail, .posts.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 84%; scroll-snap-align: start; }
}

/* 21. Movimento ridotto per chi lo chiede */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
