/* Ubikoo — Direzione visiva: apple (precisione, bianco, la foto porta tutto) */
:root {
  --bordeaux: #851A26;
  --bordeaux-d: #6a131d;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --line: #d2d2d7;
  --pale: #f5f5f7;
  --white: #ffffff;
  --night: #121012;
  --ff-t: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r-pill: 980px;
  --r: 22px;
  --r-s: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--white); letter-spacing: -.01em;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--ff-t); font-weight: 600; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: var(--head); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; margin: 0 auto; text-align: center; }

/* ---------- Bottoni (azione: pillola + freccia) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 26px; border-radius: var(--r-pill);
  font: 600 16px/1 var(--ff); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.btn--main { background: var(--bordeaux); color: #fff; }
.btn--main:hover { background: var(--bordeaux-d); }
.btn--main::after { content: "→"; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-l { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
body.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.header__in { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { flex: 0 0 auto; white-space: nowrap; display: flex; align-items: center; }
.logo img { width: 54px; height: 54px; border-radius: 8px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; text-decoration: none; color: var(--ink); opacity: .82; padding: 12px 0; }
.nav a:hover { opacity: 1; color: var(--bordeaux); }
.header__tel {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.header__tel svg { width: 16px; height: 16px; flex: 0 0 auto; }
.header__cta { min-height: 44px; padding: 0 20px; font-size: 14px; }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; flex: 0 0 auto;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

.menu { display: none; }
.menu.open {
  display: flex; position: fixed; inset: 0; z-index: 60; background: #fff;
  flex-direction: column; padding: 20px 28px 40px; overflow-y: auto;
  animation: menuIn .3s var(--ease);
}
@keyframes menuIn { from { transform: translateY(-12px); } to { transform: none; } }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 48px; margin-bottom: 18px; }
.menu__close { width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); }
.menu nav a {
  display: flex; align-items: center; min-height: 56px; font: 600 24px/1.2 var(--ff-t);
  text-decoration: none; border-bottom: 1px solid var(--line); letter-spacing: -.02em;
}
.menu .btn { margin-top: 28px; }
body.menu-open { overflow: hidden; }

@media (min-width: 721px) and (max-width: 1100px) {
  .nav { display: none; }
  .header__tel { margin-left: auto; }
  .burger { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --head: 60px; }
  .container { padding: 0 18px; }
  .header__in { gap: 8px; }
  .logo img { width: 46px; height: 46px; }
  .nav { display: none; }
  .header__tel { margin-left: auto; padding: 0 12px; }
  .header__cta { padding: 0 14px; font-size: 14px; line-height: 1.15; text-align: center; }
  .header__cta::after { content: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 360px) {
  .container.header__in { padding: 0 14px; }
  .header__in { gap: 6px; }
  .logo img { width: 40px; height: 40px; }
  .header__tel { padding: 0 8px; }
  .header__cta { padding: 0 11px; font-size: 13px; }
  .hero__actions .btn--main { padding: 0 18px; font-size: 15px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--pale); }
.hero__bg {
  position: absolute; inset: -40px; z-index: 0;
  background: url("https://storage.googleapis.com/msgsndr/WkSGHvphDxiGqk2Fy9Tn/media/6adf3c94736386d0dce0025c.jpg") 70% 45% / cover no-repeat;
  filter: blur(4px); transform: scale(1.06);
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.66) 44%, rgba(255,255,255,.35) 100%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 64px 72px;
}
.hero__brand { font: 600 15px/1.3 var(--ff); color: var(--bordeaux); margin-bottom: 18px; }
.hero h1 { font-size: 64px; line-height: 1.04; letter-spacing: -.035em; font-weight: 700; max-width: 11.5em; }
.hero h1 em { font-style: normal; color: var(--bordeaux); }
.hero__note { font: 600 19px/1.45 var(--ff); color: var(--ink); margin-top: 22px; max-width: 30em; }
.hero__sub { font-size: 19px; line-height: 1.5; color: #3a3a3d; margin-top: 22px; max-width: 30em; }
.hero__note + .hero__sub { margin-top: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__fud { margin-top: 18px; font-size: 14px; color: #424245; }
.hero__fud span + span::before { content: "·"; margin: 0 .55em; color: var(--bordeaux); }
.hero__panel {
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  border-radius: var(--r); padding: 10px;
}
[data-booking-embed], [data-form-embed] { min-height: 620px; }
[data-form-embed] { min-height: 750px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .hero { background: var(--night); color: #fff; }
  .hero__bg {
    inset: -40px -40px auto -40px; height: 600px;
    background-position: 78% 55%; background-size: cover;
    filter: blur(1.5px); transform: scale(1.04);
  }
  .hero__veil {
    background: linear-gradient(180deg,
      rgba(26,12,15,.30) 0px,
      rgba(26,12,15,.56) 240px,
      rgba(26,12,15,.82) 420px,
      rgba(18,16,18,1) 580px);
  }
  .hero__grid { padding-block: 34px 40px; gap: 30px; }
  .hero__brand { color: #f3c9cf; margin-bottom: 12px; font-size: 14px; }
  .hero h1 { font-size: 38px; line-height: 1.07; }
  .hero h1 em { color: #fff; text-decoration: underline; text-decoration-color: #c43a4b; text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .hero__note { color: #fff; font-size: 17px; margin-top: 16px; }
  .hero__sub { color: rgba(255,255,255,.9); font-size: 17px; margin-top: 16px; }
  .hero__note + .hero__sub { margin-top: 10px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.75); }
  .hero__fud { color: rgba(255,255,255,.82); }
  .hero__fud span + span::before { color: #f3c9cf; }
}

/* ---------- Sezioni ---------- */
.ch { padding-block: 120px 0; }
.ch--pale { background: var(--pale); }
.ch--night { background: var(--night); color: #f5f5f7; }
.ch__label { display: inline-flex; align-items: center; gap: .6em; font: 600 15px/1 var(--ff); color: var(--bordeaux); margin-bottom: 18px; }
.ch__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ch--night .ch__label { color: #e07a86; }
.ch h2 { font-size: 44px; line-height: 1.08; }
.ch__lead { font-size: 19px; color: var(--grey); margin-top: 20px; line-height: 1.55; }
.ch--night .ch__lead { color: #a1a1a6; }
.ch__body { margin-top: 64px; }

/* bande CTA in fondo a ogni capitolo */
.cta-band { margin-top: 110px; border-top: 1px solid rgba(0,0,0,.08); }
.ch--night .cta-band { border-top-color: rgba(255,255,255,.12); }
.cta-band__in { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; padding-block: 34px; text-align: center; }
.cta-band p { font: 600 20px/1.3 var(--ff-t); letter-spacing: -.02em; }

/* Numeri */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.fig { padding: 36px 20px 0; text-align: center; }
.fig + .fig { border-left: 1px solid rgba(255,255,255,.14); }
.fig__n { display: block; font: 700 72px/1 var(--ff-t); letter-spacing: -.045em; color: #fff; }
.fig__n small { font-size: .5em; letter-spacing: -.02em; }
.fig__t { display: block; margin-top: 14px; font-size: 16px; color: #a1a1a6; }
.wide-photo { margin-top: 80px; border-radius: var(--r); overflow: hidden; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* Metodo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 1px; background: var(--line); }
.step { text-align: center; padding: 0 14px; position: relative; }
.step::before { content: ""; display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--bordeaux); margin: 0 auto 26px; box-shadow: 0 0 0 6px #fff; position: relative; }
.step h3 { font-size: 21px; line-height: 1.25; }
.step p { margin-top: 10px; font-size: 16px; color: var(--grey); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; }
.pair figure { margin: 0; }
.pair img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pair figcaption { font-size: 14px; color: var(--grey); margin-top: 12px; text-align: center; }
.promise { margin: 64px auto 0; max-width: 640px; text-align: center; font: 600 24px/1.35 var(--ff-t); letter-spacing: -.02em; }
.promise b { color: var(--bordeaux); font-weight: 600; }

/* Pergola: gesto firma (lamelle) */
.louvres { margin: 0 auto; max-width: 860px; }
.louvres > svg { width: 100%; height: auto; display: block; }
.louvres__cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--grey); margin-top: 14px; }
.louvres__cap > span:last-child { text-align: right; }
.louvres__mid { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.louvres__ico { width: 26px; height: 26px; display: block; }
.louvres__ico circle { fill: none; stroke: var(--line); stroke-width: 1; }
.louvres__ico .lama { fill: var(--bordeaux); }
.louvres__deg { min-width: 3ch; font: 600 17px/1 var(--ff-t); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.feat { padding: 30px 26px 0; text-align: center; }
.feat + .feat { border-left: 1px solid var(--line); }
.feat h3 { font-size: 21px; }
.feat p { margin-top: 10px; font-size: 16px; color: var(--grey); }
.side-photo { margin-top: 72px; }
.side-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 60% 50%; }

/* Per chi: card cliccabili intere */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  position: relative; background: #fff; border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__txt { padding: 30px 30px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.card h3 { font-size: 28px; }
.card p { margin-top: 12px; color: var(--grey); font-size: 16px; }
.card__link { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--bordeaux); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link span::after { content: " →"; }

/* Realizzazioni */
.gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal figure { margin: 0; }
.gal figure:nth-child(1) { grid-column: span 4; }
.gal figure:nth-child(2) { grid-column: span 2; }
.gal figure:nth-child(n+3) { grid-column: span 2; }
.gal img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-s); }
.gal figure:nth-child(2) img { aspect-ratio: auto; height: 100%; }
.gal figure:nth-child(1), .gal figure:nth-child(2) { display: flex; flex-direction: column; }
.gal figure:nth-child(1) img, .gal figure:nth-child(2) img { flex: 1; min-height: 0; }
.gal figcaption { font-size: 14px; color: var(--grey); margin-top: 10px; text-align: center; }

/* Officina */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; text-align: left; }
.split img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split h2 { font-size: 44px; }
.split p + p { margin-top: 16px; }
.split .ch__lead { color: #3a3a3d; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; justify-content: space-between; gap: 20px; }
.facts b { font-weight: 600; }

/* Zone */
.zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.zone { min-height: 48px; padding: 0 22px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.zone::after { content: "→"; color: var(--bordeaux); }
.zone:hover { border-color: var(--bordeaux); }

/* Contatto */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; text-align: left; }
.nap { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.nap li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.nap li span { display: block; font-size: 13px; color: var(--grey); margin-bottom: 4px; }
.nap a { text-decoration: none; font-weight: 600; color: var(--bordeaux); display: inline-flex; min-height: 44px; align-items: center; }
.nap a.nap__link { display: block; min-height: 0; }
.nap a.nap__link span { font-weight: 400; }
.booking {
  max-width: 880px; margin-inline: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px;
}
.contact__form { padding-bottom: 120px; }

/* Footer */
.site-footer { background: var(--pale); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--grey); }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.footer__in img { width: 64px; height: 64px; border-radius: 10px; }
.footer__in p + p { margin-top: 6px; }
.footer__in a { color: var(--ink); }
.footer__legal { margin-top: 6px; }
.footer__legal a { color: var(--ink); }
.footer__credit { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Grazie */
.thanks { min-height: calc(100vh - var(--head) - 200px); display: flex; align-items: center; padding-block: 100px; text-align: center; }
.thanks h1 { font-size: 56px; line-height: 1.06; }
.thanks p { font-size: 19px; color: var(--grey); margin-top: 18px; }
.thanks .hero__actions { justify-content: center; }

/* Rivelazioni */
.riv { transition: transform .9s var(--ease); }
.js .riv { transform: translateY(24px); }
.js .riv.vista { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .riv { transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .figs { grid-template-columns: repeat(2, 1fr); }
  .fig:nth-child(3) { border-left: 0; }
  .fig { padding-bottom: 30px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .gal { grid-template-columns: 1fr 1fr; }
  .gal figure:nth-child(n) { grid-column: span 1; }
  .gal figure:nth-child(1) { grid-column: span 2; }
  .gal figure:nth-child(2) img { aspect-ratio: 3 / 2; }
}
@media (max-width: 720px) {
  .ch { padding-block: 76px 0; }
  .ch h2, .split h2 { font-size: 30px; }
  .ch__lead { font-size: 17px; }
  .ch__body { margin-top: 44px; }
  .cta-band { margin-top: 70px; }
  .cta-band p { font-size: 18px; }
  .fig__n { font-size: 44px; }
  .wide-photo { margin-top: 48px; }
  .wide-photo img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .step { text-align: left; display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; padding: 0; }
  .step::before { margin: 6px 0 0; grid-row: span 2; }
  .pair, .duo { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .feat + .feat { border-left: 0; border-top: 1px solid var(--line); }
  .feat { padding: 24px 0; }
  .side-photo img { aspect-ratio: 4 / 3; }
  .card h3 { font-size: 24px; }
  .card__txt { padding: 24px 20px 26px; }
  .promise { font-size: 20px; }
  .contact__form { padding-bottom: 76px; }
  .footer__in { grid-template-columns: 1fr; gap: 20px; }
  .thanks h1 { font-size: 36px; }
}
