/* ---------- Font self-hosted (OFL) ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2'); }

:root {
  --bg: #F3F5FC;
  --bg-accent-1: #E4E9FB;
  --bg-accent-2: #DCE6FC;
  --white: #FFFFFF;
  --accent: #2557E0;
  --accent-soft: #E8EEFF;
  --navy: #0F2247;
  --footer-bg: #0F2247;
  --text-dark: #101B33;
  --text-muted: #4B5A80;
  --text-soft: #8593B8;
  --radius: 22px;
  --shadow-soft: 0 10px 30px rgba(15,34,71,0.08);
  --shadow-lift: 0 18px 44px rgba(37,87,224,0.18);
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background:
    radial-gradient(1100px 480px at 12% -8%, var(--bg-accent-2), transparent 60%),
    radial-gradient(900px 460px at 90% 8%, var(--bg-accent-1), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Animazione di ingresso testo (discreta, sul carico pagina) ---------- */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  animation: fadeUpIn 0.7s ease both;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up { animation: none; opacity: 1; transform: none; }
}

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(16,27,51,0.06), 0 6px 20px rgba(16,27,51,0.04);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--text-dark) 0%, var(--accent) 60%, #5B8DF0 100%);
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.4s ease;
}
.nav-logo:hover {
  background-position: 100% center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.nav-cta) {
  position: relative;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--text-dark); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.active:not(.nav-cta) { color: var(--accent) !important; font-weight: 600; }
.nav-links a.active:not(.nav-cta)::after { width: 100%; }
.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-links a.nav-cta:hover { background: #1a44c2; }
.nav-links a.nav-cta:active { transform: scale(0.97); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-dark);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 6px 20px rgba(16,27,51,0.08);
  }
  .nav-links.open { max-height: 320px; padding: 12px 24px 20px; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links a.nav-cta { margin-top: 8px; display: inline-block; width: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.btn-primary:hover { background: #1a44a8; }
.btn-secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn:active { transform: scale(0.97); }

/* ---------- Reveal on scroll (used sparingly, on section headers only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); padding: 64px 16px 32px; color: #C9D3E8; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { font-family: var(--font-serif); font-size: 24px; color: #fff; margin-bottom: 14px; }
.footer-col-title { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: #C9D3E8; text-decoration: none; }
.footer-contact { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #C9D3E8; text-decoration: none; margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; font-size: 12.5px; color: #8494B8; }
.footer-bottom a { color: #8494B8; text-decoration: underline; margin-left: 20px; }
.airbnb-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px;
  background: #fff; color: var(--footer-bg); font-size: 13px; font-weight: 600;
  text-decoration: none; border-radius: 999px;
}

@media (max-width: 780px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Property cards (vetrina immobili) ---------- */
.property-card-horizontal {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 28px;
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(37,87,224,0.12);
}
.property-carousel {
  position: relative;
  flex: 1 1 420px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EAEAF7;
}
.carousel-track { display: flex; height: 100%; transition: transform 0.35s ease; }
.carousel-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, background 0.2s ease;
}
.carousel-arrow:hover { background: #FFFFFF; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); border: none; padding: 0; cursor: pointer; transition: all 0.2s ease; }
.carousel-dot.active { background: #FFFFFF; width: 16px; border-radius: 4px; }
.carousel-badge { position: absolute; top: 14px; left: 14px; background: #FFFFFF; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }

.property-content { flex: 1 1 340px; padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.property-title { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 25px); font-weight: 400; line-height: 1.3; color: var(--text-dark); margin: 0 0 10px; }
.property-location { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.property-location span { font-size: 13px; color: var(--text-soft); }
.property-description { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 0 0 24px; }
.property-description.placeholder { font-style: italic; color: #B9522C; }
.property-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .property-content { padding: 24px 20px; }
  .property-actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Hover card servizi (home) ---------- */
.service-card { transition: transform 0.25s ease; }
.service-card:hover { transform: translateY(-6px); }
.service-link { transition: background 0.2s ease, color 0.2s ease; }
.service-link:hover { background: var(--accent); color: #fff; }

/* =====================================================================
   REFINEMENTS v2 — tipografia, hero, card, popup, mobile
   ===================================================================== */
h1, h2, h3, .property-title { font-family: var(--font-serif) !important; letter-spacing: -0.01em; }
h1, h2 { font-weight: 450 !important; }
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
:focus-visible { outline: 3px solid rgba(37,87,224,0.45); outline-offset: 2px; }

/* Navbar più leggera */
.site-nav { background: rgba(255,255,255,0.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.nav-inner { padding: 8px 24px; }
.nav-logo img { height: 64px !important; }
.nav-links a.nav-cta { box-shadow: 0 6px 16px rgba(37,87,224,0.28); }
.nav-links a.nav-cta:hover { transform: translateY(-1px); }

/* Bottoni */
.btn { cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.btn-primary { box-shadow: 0 8px 20px rgba(37,87,224,0.25); }
.btn-primary:hover { background: #1a44c2; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,87,224,0.32); }
.btn-secondary { background: rgba(255,255,255,0.6); }
.btn-secondary:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); border: 1.5px solid #fff; }
.btn-light:hover { background: transparent; color: #fff; transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* Eyebrow + titoli sezione */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); box-shadow: 0 2px 10px rgba(15,34,71,0.06); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; padding: 0 16px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; color: var(--text-dark); margin: 16px 0 14px; }
.section-head p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--text-muted); margin: 0; }

/* Hero */
.hero { position: relative; max-width: 1300px; margin: 0 auto; padding: 56px 24px 72px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; color: var(--text-dark); margin: 20px 0 22px; }
.hero-text h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-text p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--text-muted); margin: 0 0 34px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-places { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.hero-places span { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 7px 14px; border: 1px solid rgba(37,87,224,0.2); border-radius: 999px; background: rgba(255,255,255,0.55); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero-photo { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 6px solid #fff; }
.hero-photo.a { top: 0; right: 0; width: 76%; height: 66%; }
.hero-photo.b { bottom: 0; left: 0; width: 58%; height: 50%; }
.hero-badge { position: absolute; right: 4%; bottom: 6%; background: var(--navy); color: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lift); max-width: 220px; }
.hero-badge strong { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 500; margin-bottom: 2px; }
.hero-badge span { font-size: 12.5px; color: #B8C6E6; line-height: 1.4; display: block; }
.hero-blob { position: absolute; z-index: -1; inset: 8% -4% -4% 12%; background: linear-gradient(135deg, var(--bg-accent-2), var(--bg-accent-1)); border-radius: 46% 54% 40% 60% / 50% 42% 58% 50%; }

/* Card servizi (home) */
.services-grid { max-width: 1300px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card.card { background: #fff; border-radius: var(--radius); padding: 30px 26px 28px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow-soft); border: 1px solid rgba(37,87,224,0.08); position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.service-card.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), #6B97F5); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-card.card:hover::before { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; background: var(--accent-soft) center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.service-icon svg { width: 30px; height: 30px; }
.service-card.card h3 { font-size: 22px; line-height: 1.25; font-weight: 500; color: var(--text-dark); margin: 0 0 12px; min-height: 2.5em; }
.service-card.card p { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin: 0 0 24px; flex-grow: 1; }
.service-card.card .more { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.service-card.card .more span { transition: transform .2s ease; }
.service-card.card .more:hover span { transform: translateX(4px); }

/* Teaser */
.teaser { max-width: 1300px; margin: 0 auto; padding: 88px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.teaser-img { position: relative; aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lift); }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; }
.teaser-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(37,87,224,0.18), rgba(15,34,71,0.05)); }
.teaser-text h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; margin: 16px 0 20px; color: var(--text-dark); }
.teaser-text p { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; color: var(--text-muted); margin: 0 0 30px; }

/* Fascia CTA */
.cta-band { max-width: 1300px; margin: 0 auto 88px; padding: 0 24px; }
.cta-box { background: linear-gradient(135deg, #0F2247 0%, #1B3A82 60%, #2557E0 120%); border-radius: 30px; padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow-lift); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; width: 340px; height: 340px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%); pointer-events: none; }
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.cta-box p { color: #B8C6E6; margin: 0; font-size: 16px; line-height: 1.6; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Card immobili più morbide */
.property-card-horizontal { border-radius: 26px; box-shadow: var(--shadow-soft); transition: box-shadow .3s ease, transform .3s ease; }
.property-card-horizontal:hover { box-shadow: var(--shadow-lift); }
.property-carousel { flex: 1 1 440px; }
.carousel-arrow { opacity: 0; transition: opacity .2s ease, transform .15s ease; }
.property-carousel:hover .carousel-arrow, .carousel-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .carousel-arrow { opacity: 1; } }

/* ---------- Popup richiesta informazioni ---------- */
.info-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: none; border-radius: 999px; background: var(--accent); color: #fff; font: 700 14.5px var(--font-sans); cursor: pointer; box-shadow: 0 12px 30px rgba(37,87,224,0.4); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; animation: fabIn .6s .6s ease both; }
.info-fab:hover { background: #1a44c2; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37,87,224,0.45); }
.info-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
@keyframes fabIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

dialog.info-dialog { border: none; padding: 0; border-radius: 26px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #fff; color: var(--text-dark); box-shadow: 0 30px 80px rgba(15,34,71,0.35); overflow: hidden; margin: auto; }
dialog.info-dialog[open] { display: flex; flex-direction: column; animation: dlgIn .3s ease both; }
dialog.info-dialog::backdrop { background: rgba(15,34,71,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: bdIn .3s ease both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bdIn { from { opacity: 0; } to { opacity: 1; } }
.dlg-head { padding: 26px 28px 18px; background: linear-gradient(135deg, var(--bg-accent-2), var(--bg-accent-1)); position: relative; }
.dlg-head h2 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; padding-right: 36px; }
.dlg-head p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); color: var(--text-dark); font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.dlg-close:hover { background: #fff; transform: rotate(90deg); }
.dlg-body { padding: 22px 28px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { margin-bottom: 14px; }
.f-field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-muted); margin-bottom: 6px; }
.f-field input, .f-field select, .f-field textarea { width: 100%; font: 500 16px var(--font-sans); color: var(--text-dark); background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
.f-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%232557E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.f-field textarea { resize: vertical; min-height: 96px; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,87,224,0.12); }
.f-field input:user-invalid, .f-field textarea:user-invalid { border-color: #D64545; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 4px 0 18px; }
.f-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.f-check a { color: var(--accent); }
.f-submit { width: 100%; padding: 15px 28px; font-size: 15px; }
.f-submit[disabled] { opacity: .7; cursor: wait; }
.f-error { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #9B2C2C; font-size: 13.5px; line-height: 1.5; }
.f-error.show { display: block; }
.f-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-success { display: none; text-align: center; padding: 40px 28px 44px; }
.f-success.show { display: block; animation: dlgIn .4s ease both; }
.f-success .tick { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.f-success h3 { font-size: 26px; margin: 0 0 10px; font-weight: 500; }
.f-success p { margin: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .teaser { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px; }
}
@media (max-width: 780px) {
  .nav-logo img { height: 52px !important; }
  .nav-inner { padding: 6px 16px; }
  .nav-links a { font-size: 16px; }
  .nav-toggle { font-size: 26px; padding: 8px; min-width: 44px; min-height: 44px; }
  .nav-links.open { max-height: 420px; }
  .section-head { margin-bottom: 32px; }
  .cta-box { text-align: center; justify-content: center; border-radius: 24px; }
  .cta-box p { margin: 0 auto; }
  .cta-actions { justify-content: center; width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .container, .hero, .services-grid, .teaser, .cta-band { padding-left: 16px; padding-right: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card.card h3 { min-height: 0; }
  .hero-actions .btn { flex: 1 1 100%; padding: 15px 20px; }
  .hero-badge { padding: 12px 14px; max-width: 170px; }
  .hero-badge strong { font-size: 17px; }
  .info-fab { right: 14px; bottom: 14px; padding: 14px; }
  .info-fab .fab-label { display: none; }
  .info-fab { width: 54px; height: 54px; justify-content: center; }
  dialog.info-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  dialog.info-dialog[open] { animation: sheetIn .35s ease both; }
  .dlg-head { padding: 22px 20px 16px; }
  .dlg-body { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
  .f-row { grid-template-columns: 1fr; gap: 0; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .info-fab, dialog.info-dialog[open], dialog.info-dialog::backdrop, .f-success.show { animation: none; }
  html { scroll-behavior: auto; }
}

/* Catch-all mobile per sezioni con larghezze minime inline */
@media (max-width: 600px) {
  [style*="min-width"] { min-width: 0 !important; }
  .chisiamo-section { padding: 56px 16px !important; }
  .chisiamo-wrap, .teaser-wrap, .visit-wrap { gap: 32px !important; }
  h1[style*="font-size"] { overflow-wrap: anywhere; }
  .property-card-horizontal { border-radius: 20px; margin-bottom: 20px; }
  .property-carousel { flex-basis: 100%; }
}

/* ---------- Chi siamo: sezioni aggiuntive ---------- */
.about-block { padding: 56px 0 24px; }
.steps-grid, .values-grid, .zones-grid, .faq-list { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-item { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-soft); }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 18px var(--font-serif); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-item h3, .value-card h3, .zone-card h3 { font-size: 21px; font-weight: 500; margin: 0 0 8px; color: var(--text-dark); }
.step-item p, .value-card p, .zone-card p { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(160deg, #fff, var(--accent-soft)); border: 1px solid rgba(37,87,224,0.1); border-top: 4px solid var(--accent); }
.zones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.zone-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .3s ease, box-shadow .3s ease; }
.zone-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.zone-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.zone-card > div { padding: 22px 24px 26px; }
.faq-list { max-width: 820px; }
.faq-item { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 16px; line-height: 1.4; position: relative; color: var(--text-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 24px 22px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
@media (max-width: 1000px) { .steps-grid, .values-grid { grid-template-columns: repeat(2, 1fr); } .zones-grid { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 600px) { .steps-grid, .values-grid, .zones-grid, .faq-list { padding: 0 16px; } .steps-grid, .values-grid { grid-template-columns: 1fr; gap: 16px; } .about-block { padding-top: 40px; } }
