/* =========================================================================
   Dragas Immobiliare S.A.S. — Foglio di stile
   Design: sofisticato, minimale, accessibile.
   Nessuna dipendenza esterna. Nessun font da CDN.
   Compatibile con browser testuali (progressive enhancement).
   ========================================================================= */

:root {
  /* --- Colori --- */
  --ink:        #1b262e;
  --ink-soft:   #52636e;
  --ink-light:  #8899a3;
  --paper:      #eef1f4;
  --paper-warm: #f3f0ec;
  --surface:    #ffffff;
  --surface-alt:#f8fafb;

  --petrol:     #0f3045;
  --petrol-mid: #164d66;
  --petrol-2:   #1c5f80;
  --azure:      #2a7a9f;
  --azure-soft: #5ba4c0;
  --azure-light:#dceef6;

  --ochre:      #c48a42;
  --ochre-soft: #e0b988;
  --ochre-light:#f5e8d6;

  --line:       #cdd6db;
  --line-soft:  #e3eaee;

  /* --- Tipografia --- */
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mono:  "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  /* --- Misure --- */
  --maxw: 1140px;
  --gap:  1.5rem;
  --radius: 8px;
  --radius-lg: 14px;

  /* --- Animazioni --- */
  --ease-out:   cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================================
   Reset essenziale
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--azure);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
a:hover { color: var(--petrol); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--petrol);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6rem;
}

p { margin: 0 0 1rem; }

ul { list-style: none; margin: 0; padding: 0; }

/* =========================================================================
   Accessibilità
   ========================================================================= */
.skip {
  position: absolute; left: -999px; top: auto;
  background: var(--petrol); color: #fff;
  padding: .7rem 1.2rem; z-index: 999;
  font-size: .95rem; font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
  transition: left .2s var(--ease-out);
}
.skip:focus {
  left: 0; top: 0;
}

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================================
   Impalcatura
   ========================================================================= */
.wrap {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--tight { padding: 3.2rem 0; }

/* =========================================================================
   Eyebrow (label sopra i titoli)
   ========================================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--azure);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--ochre);
  display: inline-block;
  border-radius: 2px;
}

.lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink); }
.muted { color: var(--ink-soft); }

/* =========================================================================
   Bottoni
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s var(--ease-out);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background: var(--petrol);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 48, 69, .25);
}
.btn--primary:hover {
  background: var(--petrol-mid);
  box-shadow: 0 4px 16px rgba(15, 48, 69, .3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--petrol);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--petrol);
  color: var(--petrol);
  background: rgba(15, 48, 69, .04);
}

.btn--light {
  background: #fff;
  color: var(--petrol);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn--light:hover {
  background: var(--surface-alt);
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
  transform: translateY(-1px);
}

/* =========================================================================
   Intestazione
   ========================================================================= */
.site-head {
  background: rgba(238, 241, 244, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }

.brand-logo { height: 40px; width: auto; display: block; }
.foot-brand .brand-logo { height: 44px; }

/* --- Navigazione --- */
.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink-soft);
  padding: .3rem 0;
  position: relative;
  transition: color .2s var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: auto; bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--ochre);
  border-radius: 2px;
  transition: width .25s var(--ease-out);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav a[aria-current="page"] {
  color: var(--petrol);
  font-weight: 700;
}
.nav a[aria-current="page"]::after { width: 100%; }

/* --- Toggle mobile --- */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: .4rem .65rem;
  cursor: pointer;
  color: var(--petrol);
  font-size: 1.3rem;
  line-height: 1;
  transition: border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--petrol); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { background: var(--paper); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(15, 48, 69, .08), 0 1px 4px rgba(15, 48, 69, .06);
}

.hero__copy { padding: 3.6rem 3.2rem; }

.hero__copy .eyebrow { margin-bottom: 1.4rem; }

.hero__copy h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 1.1rem;
  color: var(--petrol);
}

.hero__copy h1 .accent {
  color: var(--azure);
  position: relative;
}

.hero__copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: .08em;
  height: .12em;
  width: 100%;
  background: var(--ochre-light);
  border-radius: 2px;
  z-index: -1;
}

.hero__copy > p {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --- Pannello destro hero --- */
.hero__panel {
  background: var(--petrol);
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(28, 95, 128, .45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 122, 159, .25) 0%, transparent 50%),
    linear-gradient(165deg, var(--petrol) 0%, var(--petrol-mid) 50%, var(--petrol-2) 100%);
  color: #cfe0e8;
  padding: 2.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

/* Pattern decorativo SVG in background */
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23fff' stroke-width='.5' fill='none'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero__panel .skyline {
  width: 100%;
  height: auto;
  margin-bottom: 1.4rem;
  opacity: .85;
  position: relative;
  z-index: 1;
}

.hero__panel .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: #e2eef4;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero__panel .place {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  color: var(--azure-soft);
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
}

/* Decorative dots in panel */
.hero__panel::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 36px;
  height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='18' cy='4' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='32' cy='4' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='4' cy='18' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='18' cy='18' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='32' cy='18' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='4' cy='32' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='18' cy='32' r='1.5' fill='%235ba4c0'/%3E%3Ccircle cx='32' cy='32' r='1.5' fill='%235ba4c0'/%3E%3C/svg%3E");
  opacity: .5;
}

/* =========================================================================
   Striscia di garanzie
   ========================================================================= */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* Linea decorativa superiore */
.strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ochre) 0%, var(--ochre-soft) 50%, var(--azure-soft) 100%);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  padding: 2.8rem 0;
}

.strip__item {
  padding-left: 1.2rem;
  border-left: 3px solid var(--ochre);
  position: relative;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}

.strip__item:hover {
  border-left-color: var(--azure);
  transform: translateX(3px);
}

.strip__item h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--petrol);
  margin-bottom: .4rem;
  font-weight: 700;
}

.strip__item p {
  font-size: .94rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================================
   Due colonne (chi siamo)
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 3.6rem;
  align-items: start;
}

.split__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.split__body p { color: var(--ink); }
.split__body p + p { margin-top: 1.1rem; }

/* Ornamento decorativo */
.split__head::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--ochre), var(--ochre-soft));
  border-radius: 3px;
  margin-top: 1.2rem;
}

/* =========================================================================
   Schede "cosa offriamo"
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-spring);
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ochre), var(--azure-soft));
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}

.card:hover {
  border-color: var(--petrol-2);
  box-shadow: 0 6px 24px rgba(15, 48, 69, .1);
  transform: translateY(-3px);
}

.card:hover::before { opacity: 1; }

.card h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  color: var(--petrol);
  margin-bottom: .6rem;
  font-weight: 700;
}

.card p {
  font-size: .94rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

.card__num {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--ochre);
  display: block;
  margin-bottom: .9rem;
  letter-spacing: .06em;
}

/* =========================================================================
   Griglia immobili
   ========================================================================= */
.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.immobile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .3s var(--ease-spring);
}

.immobile:hover {
  border-color: var(--petrol);
  box-shadow: 0 8px 32px rgba(15, 48, 69, .12);
  transform: translateY(-4px);
}

.immobile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #1b4860 0%, #143b4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.immobile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 48, 69, .35) 100%);
  pointer-events: none;
}

.immobile__media img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }

.immobile__media .ph {
  color: var(--azure-light);
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  z-index: 1;
}

.immobile__media .ph svg {
  display: block;
  margin: 0 auto .6rem;
  opacity: .5;
}

.badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--petrol);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 4px;
  z-index: 2;
}

.immobile__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.immobile__body h3 { font-size: 1.18rem; margin-bottom: .3rem; }

.immobile__zona {
  font-size: .88rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.immobile__meta {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: .85rem 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: .88rem;
  color: var(--ink-soft);
}

.immobile__meta b { color: var(--ink); font-weight: 600; }

.immobile__desc {
  font-size: .93rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  line-height: 1.65;
}

.immobile__foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.canone {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--petrol);
}
.canone span {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.immobile__link {
  color: var(--petrol);
  text-decoration: none;
  position: relative;
}
.immobile__link::after {
  content: "";
  position: absolute;
  inset: -6px -12px;
  z-index: 1;
}
.immobile__link:hover { color: var(--azure); }

.immobile__foot .dettagli {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  color: var(--azure);
  transition: color .2s ease;
}
.immobile:hover .dettagli { color: var(--petrol); }

/* --- Filtri --- */
.filtri {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.8rem 0 2.4rem;
}

.filtri a {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 24px;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface);
  transition: all .2s var(--ease-out);
}

.filtri a:hover {
  border-color: var(--azure-soft);
  color: var(--petrol);
  background: var(--azure-light);
}

.filtri a[aria-current="true"] {
  border-color: var(--petrol);
  color: var(--petrol);
  background: rgba(15, 48, 69, .06);
}

/* =========================================================================
   Fascia di contatto (CTA)
   ========================================================================= */
.cta-band {
  background: var(--petrol);
  background-image:
    radial-gradient(ellipse at 10% 90%, rgba(28, 95, 128, .4) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(42, 122, 159, .2) 0%, transparent 50%),
    linear-gradient(160deg, var(--petrol-mid) 0%, var(--petrol) 40%, #0d2a3c 100%);
  color: #e7eef2;
  position: relative;
  overflow: hidden;
}

/* Pattern decorativo */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0v40M0 20h40' stroke='%23fff' stroke-width='.4' fill='none'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3.4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  margin: .4rem 0 0;
  color: #a8c5d3;
  font-size: 1.05rem;
}

/* =========================================================================
   Pagina contatti
   ========================================================================= */
.contatti-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.6rem;
}

.info-list { margin: 0; padding: 0; }

.info-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.info-list .label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--azure);
  font-weight: 700;
  display: block;
  margin-bottom: .25rem;
}

.info-list .value { color: var(--ink); font-size: .98rem; }

/* --- Form --- */
form .field { margin-bottom: 1.2rem; }

form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}

form input, form textarea, form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}

form input:focus, form textarea:focus, form select:focus {
  border-color: var(--azure);
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 122, 159, .15);
}

form textarea { min-height: 140px; resize: vertical; }

form .btn { margin-top: .4rem; }

/* =========================================================================
   Intestazione di pagina interna
   ========================================================================= */
.page-head {
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.page-head .wrap { padding: 3.6rem 1.5rem 3.2rem; }

.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: .7rem;
}

.page-head p {
  max-width: 54ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.08rem;
}

/* =========================================================================
   Piè di pagina
   ========================================================================= */
.site-foot {
  background: var(--petrol);
  color: #b0c5cf;
  padding-top: 3.2rem;
  position: relative;
}

/* Skyline decorativo in cima al footer */
.site-foot .skyline-divider {
  width: 100%;
  height: auto;
  display: block;
  opacity: .35;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2.8rem;
  padding: 2.6rem 0;
}

.site-foot h4 {
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--azure-soft);
  margin: 0 0 1.1rem;
  font-weight: 700;
}

.site-foot a { color: #d1e4ed; }
.site-foot a:hover { color: #fff; }

.foot-brand .brand__name { color: #fff; }
.foot-brand .brand__name span { color: var(--azure-soft); }

.foot-nav li { margin-bottom: .65rem; }

.legal {
  font-size: .86rem;
  line-height: 1.85;
  color: #8ea8b6;
}

.legal b { color: var(--ink); font-weight: 600; }
.site-foot .legal b { color: #c8dce6; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  font-size: .8rem;
  color: #6a8d9f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}

/* =========================================================================
   Pagina dettaglio immobile
   ========================================================================= */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumb .wrap { padding: 1rem 1.5rem; font-size: .88rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--azure); }
.breadcrumb .sep { margin: 0 .5rem; color: var(--line-soft); }

.detail {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.8rem;
  align-items: start;
}

/* Galleria */
.gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--petrol);
  box-shadow: 0 4px 20px rgba(15, 48, 69, .1);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__main .zoom-hint {
  position: absolute;
  bottom: .8rem;
  right: .8rem;
  background: rgba(15, 48, 69, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .4rem .7rem;
  border-radius: 4px;
  pointer-events: none;
}

.gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .8rem;
}

.thumb {
  width: 88px;
  height: 68px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--petrol);
  transition: border-color .2s ease, transform .2s var(--ease-spring);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-active { border-color: var(--petrol); }
.thumb:hover { border-color: var(--azure); transform: scale(1.05); }

/* Pannello riepilogo */
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  position: sticky;
  top: 90px;
  box-shadow: 0 2px 16px rgba(15, 48, 69, .06);
}

.summary .badge {
  position: static;
  display: inline-block;
  margin-bottom: .9rem;
  background: var(--petrol);
  color: #fff;
}

.summary h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3rem; }
.summary .zona { color: var(--ink-soft); margin: 0 0 1.3rem; }

.canone--lg {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--petrol);
  display: block;
  margin-bottom: 1.4rem;
}
.canone--lg span { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); }

.meta-grid {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 1.3rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.meta-grid li { text-align: center; }
.meta-grid b {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--petrol);
}
.meta-grid span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  display: block;
  margin-top: .2rem;
}

.summary .btn { width: 100%; text-align: center; }
.summary .nota { font-size: .84rem; color: var(--ink-soft); margin: 1rem 0 0; text-align: center; }

/* Descrizione e caratteristiche */
.detail-body { margin-top: 3.2rem; max-width: 740px; }
.detail-body h2 { font-size: 1.45rem; margin: 2.4rem 0 .9rem; }
.detail-body h2:first-child { margin-top: 0; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1.6rem;
}

.features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
  font-size: .96rem;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-left: 2px solid var(--ochre);
  border-bottom: 2px solid var(--ochre);
  transform: rotate(-45deg) translateY(-2px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 34, .94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; }
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease;
}
.lightbox__close:hover { opacity: 1; }

/* =========================================================================
   Animazioni di comparsa (progressive enhancement)
   ========================================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__copy    { animation: fade-up .6s var(--ease-out) both; }
.hero__panel   { animation: fade-up .6s var(--ease-out) .1s both; }
.strip__grid   { animation: fade-up .5s var(--ease-out) .15s both; opacity: 0; }
.split         { animation: fade-up .5s var(--ease-out) .15s both; opacity: 0; }
.cards         { animation: fade-up .5s var(--ease-out) .15s both; opacity: 0; }
.listings      { animation: fade-up .5s var(--ease-out) .15s both; opacity: 0; }
.cta-band      { animation: fade-up .5s var(--ease-out) .1s both; opacity: 0; }

/* =========================================================================
   Adattamento mobile
   ========================================================================= */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding: 2.4rem 1.8rem; }
  .hero__panel { min-height: 240px; }

  .strip__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .listings { grid-template-columns: 1fr 1fr; }
  .contatti-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .detail { grid-template-columns: 1fr; gap: 1.8rem; }
  .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band .wrap { flex-direction: column; text-align: center; }

  .nav-toggle { display: block; }
  .brand-logo { height: 34px; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-of-type { border-bottom: none; }
  .nav a::after { display: none; }
}

@media (max-width: 560px) {
  .listings { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .section--tight { padding: 2.4rem 0; }
  .features { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Rispetta chi preferisce meno animazioni
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .strip__grid, .split, .cards, .listings, .cta-band {
    opacity: 1 !important;
  }
}
