/* =========================================================
   Ghe Pensi Mì! — Affitti brevi chiavi in mano
   Design system
   ========================================================= */

:root {
  --ink: #061c32;
  --ink-soft: #20384f;
  --muted: #5a6f80;
  --paper: #f6f8f4;
  --paper-2: #eef3ea;
  --white: #ffffff;

  --green: #2f721f;
  --green-deep: #1f5315;
  --green-soft: #e8f3df;

  --blue: #0a315f;
  --blue-deep: #061c32;
  --sky: #e2ecf5;

  --gold: #f1c46b;

  --line: rgba(6, 28, 50, 0.12);
  --line-strong: rgba(6, 28, 50, 0.2);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;

  --shadow-s: 0 8px 24px rgba(6, 28, 50, 0.08);
  --shadow: 0 22px 60px rgba(6, 28, 50, 0.14);
  --shadow-green: 0 18px 40px rgba(47, 114, 31, 0.25);

  --maxw: 1160px;
  --gut: clamp(20px, 5vw, 64px);

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  /* Evita qualsiasi scroll orizzontale (deriva laterale / bianco ai lati) su
     mobile. `clip` invece di `hidden` perché non crea un contenitore di scroll
     e quindi non rompe l'header sticky. */
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: var(--green);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

/* ---------- Layout helpers ---------- */
.section {
  padding: clamp(56px, 8vw, 110px) var(--gut);
}
.section > *,
.hero-inner,
.strip,
.footer-inner,
.footer-base {
  max-width: var(--maxw);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.eyebrow.light {
  color: var(--gold);
}
.eyebrow.light::before {
  background: var(--gold);
}

.lead-muted {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  max-width: 60ch;
}
.lead-muted.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-heading h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  max-width: 18ch;
}
.section-heading .lead-muted {
  max-width: 38ch;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.button.primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
}
.button.ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.button.ghost-light:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.button.whatsapp {
  background: #25d366;
  color: #06351b;
}
.button.whatsapp::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm5.8 14.13c-.24.69-1.42 1.32-1.95 1.36-.5.05-1.13.2-3.66-.79-3.07-1.21-5.04-4.34-5.2-4.54-.15-.2-1.24-1.65-1.24-3.15 0-1.5.79-2.24 1.07-2.54.28-.3.61-.38.81-.38.2 0 .41 0 .58.01.19.01.44-.07.69.53.24.59.83 2.04.9 2.19.07.15.12.32.02.52-.1.2-.15.32-.3.49-.15.17-.31.38-.45.51-.15.15-.3.31-.13.6.17.3.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.36 1.46.3.15.47.12.64-.07.17-.2.74-.86.94-1.16.2-.3.4-.25.67-.15.27.1 1.71.81 2 .96.3.15.5.22.57.34.07.12.07.71-.17 1.4Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2Zm5.8 14.13c-.24.69-1.42 1.32-1.95 1.36-.5.05-1.13.2-3.66-.79-3.07-1.21-5.04-4.34-5.2-4.54-.15-.2-1.24-1.65-1.24-3.15 0-1.5.79-2.24 1.07-2.54.28-.3.61-.38.81-.38.2 0 .41 0 .58.01.19.01.44-.07.69.53.24.59.83 2.04.9 2.19.07.15.12.32.02.52-.1.2-.15.32-.3.49-.15.17-.31.38-.45.51-.15.15-.3.31-.13.6.17.3.76 1.25 1.63 2.03 1.12 1 2.06 1.31 2.36 1.46.3.15.47.12.64-.07.17-.2.74-.86.94-1.16.2-.3.4-.25.67-.15.27.1 1.71.81 2 .96.3.15.5.22.57.34.07.12.07.71-.17 1.4Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.button.whatsapp:hover {
  background: #1fbe5b;
  transform: translateY(-2px);
}
.button.block {
  width: 100%;
}
.button.small {
  padding: 9px 18px;
  font-size: 14px;
}
.button.ghost {
  background: transparent;
  border-color: var(--line-strong, rgba(0, 0, 0, 0.18));
  color: var(--ink);
}
.button.ghost:hover {
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

.ghost-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ghost-link:hover {
  border-color: var(--green);
}
.ghost-link.light {
  color: #fff;
}
.ghost-link.light:hover {
  border-color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--gut);
  background: rgba(246, 248, 244, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(6, 28, 50, 0.07);
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  flex: 0 0 auto;
}
.brand img {
  height: 46px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a:hover::after {
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
/* Il pulsante "Chiama" nell'header è solo per mobile (vedi media query 860px). */
.header-actions .ghost-link {
  display: none;
}
.header-cta {
  padding: 11px 22px;
  font-size: 15px;
}
.cta-short {
  display: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(60px, 12vh, 130px) var(--gut) clamp(48px, 8vh, 90px);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(6, 28, 50, 0.92) 0%,
      rgba(6, 28, 50, 0.78) 38%,
      rgba(6, 28, 50, 0.42) 72%,
      rgba(6, 28, 50, 0.25) 100%
    );
}
.hero-inner {
  width: 100%;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  max-width: 17ch;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  white-space: nowrap;
}
.hero h1 .accent {
  color: var(--gold);
}
.hero-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.hero-trust li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- Strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: calc(clamp(48px, 8vh, 90px) * -0.5);
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow);
}
.strip-item {
  background: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strip-item strong {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--green);
  line-height: 1;
}
.strip-item span {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Problema ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.problem .section-intro h2 {
  font-size: clamp(27px, 4vw, 42px);
  margin-bottom: 18px;
  max-width: 16ch;
}
.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.problem-list li {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-s);
}
.problem-list .dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(241, 196, 107, 0.25);
}
.problem-list h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
}
.problem-list p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Turnkey / split ---------- */
.turnkey {
  background: var(--blue-deep);
  color: #fff;
}
.turnkey-head {
  text-align: center;
  margin-bottom: clamp(34px, 5vw, 54px);
}
.turnkey-head h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  max-width: 20ch;
  margin: 0 auto 16px;
}
.turnkey-head .eyebrow {
  color: var(--gold);
}
.turnkey-head .eyebrow::before {
  background: var(--gold);
}
.split-card {
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.split {
  padding: clamp(28px, 4vw, 44px);
}
.split h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
}
.split.us {
  background: rgba(47, 114, 31, 0.16);
}
.split.us h3 {
  color: var(--gold);
}
.split-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.05);
}
.split-vs span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.split-note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.check-list.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 13px 22px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background: var(--gold);
}
.check-list.two-col li::before,
.split.us .check-list li::before {
  background: var(--gold);
}
.check-list.minimal li::before {
  background: var(--green);
  -webkit-mask: none;
  mask: none;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  top: 8px;
  left: 4px;
}
.check-list.minimal li {
  padding-left: 24px;
}

/* check icon via pseudo using mask correctly */
.check-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 7px;
}
.service-card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Process ---------- */
.process {
  background: var(--paper-2);
}
.process-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.process-copy {
  position: sticky;
  top: 110px;
}
.process-copy h2 {
  font-size: clamp(27px, 4vw, 42px);
  margin-bottom: 16px;
  max-width: 14ch;
}
.process-copy .button {
  margin-top: 26px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.steps li {
  display: flex;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-s);
}
.step-n {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.steps h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Showcase ---------- */
.showcase-grid {
  display: grid;
  /* Card uguali e adattive: con poche restano centrate; tutte alla stessa
     altezza (stretch) così sono allineate anche con testi di lunghezza diversa. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}
.showcase-grid.is-single {
  grid-template-columns: minmax(0, 480px);
}
/* Stessa altezza per tutte le card: il corpo riempie lo spazio e il link
   "Vedi l'immobile" resta ancorato in fondo, così i pulsanti si allineano. */
.showcase-grid .property-body {
  flex: 1;
}
.showcase-grid .property-link {
  margin-top: auto;
}
.showcase-grid .property-body p:empty {
  display: none;
}
.showcase-state {
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}
.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.property-card.feature {
  grid-row: auto;
}
.property-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.property-card.feature .property-photo {
  aspect-ratio: 16 / 10;
}
.property-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-photo img {
  transform: scale(1.05);
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(47, 114, 31, 0.95);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.property-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.property-loc {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.property-body h3 {
  font-size: 21px;
}
.property-card.feature .property-body h3 {
  font-size: 21px;
}
.property-body p {
  color: var(--muted);
  font-size: 15px;
}
.property-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
}
.property-meta li {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 5px 13px;
}
.showcase-note {
  margin-top: 28px;
  text-align: center;
  font-size: 18px;
  color: var(--ink-soft);
}
.showcase-note a {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.showcase-note a:hover {
  border-color: var(--green);
}

/* ---------- Why ---------- */
.why {
  background: var(--blue-deep);
  color: #fff;
}
.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: center;
}
.why-media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-copy h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 30px;
  max-width: 16ch;
}
.why-copy .eyebrow {
  color: var(--gold);
}
.why-copy .eyebrow::before {
  background: var(--gold);
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.why-list li {
  padding-left: 28px;
  position: relative;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
}
.why-list h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.why-list p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15.5px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-list details[open] {
  box-shadow: var(--shadow-s);
  border-color: var(--line-strong);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: 17.5px;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  content: "\2212";
}
.faq-list details p {
  color: var(--muted);
  font-size: 15.5px;
  padding: 0 0 20px;
  max-width: 70ch;
}

/* ---------- CTA / lead ---------- */
.cta-section {
  background: linear-gradient(160deg, var(--green-deep), var(--green) 130%);
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}
.cta-copy h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 18px;
  max-width: 16ch;
}
.cta-copy > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 46ch;
}
.cta-points {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.cta-points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
}
.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.cta-direct {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lead-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.lead-form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: 15.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 114, 31, 0.14);
}
.form-note {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 0;
}
.form-note.ok,
.form-note.err {
  padding: 11px 13px;
  border-radius: 10px;
  line-height: 1.45;
}
.form-note.ok {
  color: var(--green-deep);
  background: rgba(47, 114, 31, 0.1);
}
.form-note.err {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}
.form-privacy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.form-privacy a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
}
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.field-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
  cursor: pointer;
}
.field-consent a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(48px, 7vw, 76px) var(--gut) 0;
}
.footer-inner {
  display: grid;
  /* Brand + 3 colonne (Link utili · Zone servite · Contatti). */
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img {
  height: 96px;
  width: auto;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
}
.footer-brand p {
  font-size: 15px;
  max-width: 36ch;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 30px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}
.footer-legal-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.footer-legal-links a:hover {
  color: #fff;
}

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 35;
  display: none;
  gap: 10px;
  padding: 10px;
  background: rgba(6, 28, 50, 0.96);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.sticky-bar .button {
  flex: 1;
  padding: 13px 10px;
  font-size: 15px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(720px, calc(100% - 24px));
  background: var(--white, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.1));
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(8, 28, 50, 0.22);
}
.cookie-banner-inner {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft, #333);
}
.cookie-banner-inner a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
@media (max-width: 860px) {
  /* Sopra la sticky-bar mobile, per non sovrapporsi */
  .cookie-banner {
    bottom: 86px;
  }
}
@media (max-width: 560px) {
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .button {
    flex: 1;
  }
}

/* Placeholder consenso per l'embed Smoobu (terza parte) */
.embed-consent {
  background: var(--paper-2, #f4f1ea);
  border: 1px dashed var(--line, rgba(0, 0, 0, 0.15));
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 14px;
}
.embed-consent p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft, #333);
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-layout {
    grid-template-columns: 1fr;
  }
  .process-copy {
    position: static;
  }
  .why-layout {
    grid-template-columns: 1fr;
  }
  .why-media {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  /* Header più compatto: logo, gap e CTA ridotti per non far sforare
     il pulsante hamburger oltre il bordo dello schermo su mobile. */
  .site-header {
    gap: 12px;
  }
  .brand img {
    height: 40px;
  }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--gut) 18px;
    margin: 0;
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    z-index: 30;
  }
  .site-header.nav-open .site-nav {
    transform: translateY(0);
  }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  /* Su mobile "Chiama" diventa un pulsante-icona compatto (come l'hamburger),
     così sta nell'header senza spingere fuori gli altri elementi. Il testo
     resta nel DOM per gli screen reader. */
  .header-actions .ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--green);
    font-size: 0;
  }
  .header-actions .ghost-link::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.24.2 2.45.57 3.57a1 1 0 0 1-.24 1.02l-2.21 2.2z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.24.2 2.45.57 3.57a1 1 0 0 1-.24 1.02l-2.21 2.2z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
  .nav-toggle {
    display: flex;
    order: 3;
  }
  .header-actions {
    margin-left: auto;
    gap: 10px;
  }
  .header-cta {
    padding: 10px 16px;
    font-size: 14.5px;
  }
  .cta-long {
    display: none;
  }
  .cta-short {
    display: inline;
  }

  .strip {
    grid-template-columns: 1fr 1fr;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .split-card {
    grid-template-columns: 1fr;
  }
  .split-vs {
    padding: 14px;
  }
  .split-vs span {
    white-space: normal;
  }
  .check-list.two-col {
    grid-template-columns: 1fr;
  }
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .property-card.feature {
    grid-row: auto;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 78px;
  }
}

@media (max-width: 520px) {
  .strip {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
}

/* Schermi telefono stretti (360px e inferiori): header ancora più compatto
   così logo, CTA e hamburger restano tutti dentro lo schermo. */
@media (max-width: 420px) {
  .site-header {
    gap: 6px;
  }
  .brand img {
    height: 32px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .ghost-link {
    width: 38px;
    height: 38px;
  }
  .header-cta {
    padding: 8px 11px;
    font-size: 13.5px;
  }
  .sticky-bar .button {
    font-size: 13.5px;
    padding: 12px 8px;
  }
}
