:root{
  --brand:#0a71b1;
  --brand-hover:#085f95;
  --secondary:#41413d;

  --text:#ffffff;
  --muted:rgba(255,255,255,.82);

  --sheetText:#0f172a;
  --sheetMuted:#475569;
  --line:#e2e8f0;
  --card:#ffffff;
}

/* Reset base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

/* =========================
   HERO full background
========================= */
.hero{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  color:var(--text);
  background:url("img/hero.png") center/cover no-repeat;
}

/* Overlay (unico) */
.overlay{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(1000px 650px at 20% 10%, rgba(10,113,177,.43), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(65,65,61,.43), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.70));
}

/* Tutto il contenuto sopra overlay */
.topbar,
.content{
  position:relative;
  z-index:2;
}

/* =========================
   Topbar
========================= */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 18px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

/* LOGO responsive */
.brand-logo{
  height: clamp(20px, 6vw, 60px);   /* min 40 - cresce - max 60 */
  width: auto;
  display:block;
  margin-top: 4px;
  margin-left: 4px;
}

/* NUMERO responsive */
.telefono{
  height: clamp(20px, 7vw, 80px);   /* min 52 - cresce - max 80 */
  width: auto;
  display:block;
  margin-top: 4px;
  margin-left: 4px;
  transition: filter .18s ease, transform .18s ease;
}

/* illumina */
a:hover .telefono{
  filter: brightness(1.15);
}

/* opzionale: micro “pop” */
a:hover .telefono{
  transform: translateY(-1px);
}

/* =========================
   Center content
========================= */
.content{
  max-width:980px;
  margin:0 auto;
  padding:44px 18px 22px;
  min-height:calc(100vh - 60px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.badge{
  display:inline-flex;
  align-self:flex-start;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
}

h1{
  margin:16px 0 10px;
  font-size:clamp(34px, 4.4vw, 62px);
  line-height:1.05;
  letter-spacing:-.02em;
}
.h1-sub{
  color:rgba(255,255,255,.92);
  font-size:clamp(18px, 1.7vw, 24px);
  letter-spacing:-.004em;
}

.sub{
  margin:10px 0 18px;
  max-width:54ch;
  color:var(--muted);
  font-size:clamp(15px, 1.3vw, 18px);
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

/* =========================
   Buttons
========================= */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.actions.center{ justify-content:center; }

.btn{
  border:0;
  cursor:pointer;
  text-decoration:none;
  font-weight:900;
  border-radius:16px;
  padding:14px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  line-height:1;
  transition:transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}

.btn.primary{
  background:var(--brand);
  color:#fff;
}
.btn.primary:hover{
  background:var(--brand-hover);
  transform:translateY(-1px);
}

.btn.ghost{
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
}
.btn.ghost:hover{
  background:rgba(255,255,255,.18);
  transform:translateY(-1px);
}

.btn.full{ width:100%; }

.center-row{
  display:flex;
  justify-content:center;
}


/* Bottone “special” (se ti serve come variante neutra) */
.btn.special{
  background:transparent;
  color:#334155;
  border:1px solid rgba(51,65,85,.25);
  padding:10px 12px;
}
.btn.special:hover{
  background:rgba(51,65,85,.25);
  border-color:transparent;
  transform:translateY(-1px);
}

/* =========================
   Chevron (apri/chiudi form)
========================= */
.chevron{
  margin-top:22px;
  align-self:center;
  background:transparent;
  border:0;
  color:rgba(255,255,255,.9);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:10px 14px;
}

/* bounce qui (translateY) */
.chevron-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  animation:bounce 1.4s infinite;
}

/* rotate + transition qui (non va in conflitto col bounce) */
.chevron-svg{
  width:34px;
  height:34px;
  display:block;
  transform-origin:center;
  transition:transform .22s ease;
}


.chevron-text{
  font-weight:800;
  font-size:13px;
  letter-spacing:.02em;
  opacity:.9;
}

.chevron.is-open .chevron-icon{
  animation:none;              /* stop bounce */
}

.chevron.is-open .chevron-svg{
  transform:rotate(180deg);    /* rotate solo svg */
}

@keyframes bounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(6px); }
}

.chevron--decor{
  pointer-events: none;     /* non cliccabile */
  opacity: .9;
}

.fineprint{
  margin-top:20px;
  font-size:12px;
  color:rgba(255,255,255,.78);
}

/* =========================
   LEAD nel flusso (chiuso/aperto)
========================= */
.lead{
  max-height:0;
  overflow:hidden;
  background:transparent;
  border-top:0;
  transition:max-height .55s cubic-bezier(.2,.9,.2,1);
}

.wrap-lead{
  max-width:980px;
  margin:0 auto;
  padding:0;
  transition:padding .35s ease;
}

.lead.open{
  max-height:2200px; /* aumenta se serve */
  background:#fff;
  border-top:1px solid var(--line);
}
.lead.open .wrap-lead{
  padding:18px 18px 40px;
}

/* Card animata dentro al lead */
.lead-card{
  background:var(--card);
  color:var(--sheetText);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 18px 60px rgba(0,0,0,.10);

  overflow:hidden;

  max-height:0;
  opacity:0;
  transform:translateY(-10px);

  transition:
    max-height .55s cubic-bezier(.2,.9,.2,1),
    opacity .35s ease,
    transform .35s ease;

  will-change:max-height, transform, opacity;
}

.lead.open .lead-card{
  max-height:1200px;
  opacity:1;
  transform:translateY(0);
}

.lead-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:16px 18px 8px;
}

.lead-title{ font-weight:1000; font-size:18px; }
.lead-sub{ color:var(--sheetMuted); font-size:13px; margin-top:3px; }

.lead-close{
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:18px;
  padding:10px;
  color:#334155;
}

/* =========================
   Form (usato sia nel lead che nello sheet)
========================= */
.form{
  padding:10px 18px 18px;
}

.form label{
  display:block;
  margin-top:12px;
  font-size:13px;
  color:var(--sheetMuted);
  font-weight:800;
}

.form input,
.form textarea{
  width:100%;
  margin-top:6px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  font-size:15px;
  outline:none;
}

.form input:focus,
.form textarea:focus{
  border-color:rgba(10,113,177,.55);
  box-shadow:0 0 0 4px rgba(10,113,177,.12);
}

/* Checkbox consenso (UNA SOLA VERSIONE) */
.form .consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
}

.form .consent input[type="checkbox"]{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:2px 0 0;
}

.form .consent span{
  display:block;
  line-height:1.35;
}

.or{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0;
  color:#64748b;
  font-weight:900;
  font-size:12px;
}
.or span{
  height:1px;
  flex:1;
  background:var(--line);
}

.privacy{
  margin:12px 0 0;
  text-align:center;
  font-size:12px;
  color:#64748b;
}
.privacy a{
  color:var(--brand);
  text-decoration:none;
  font-weight:900;
}
.privacy a:hover{ color:var(--brand-hover); }

/* =========================
   OPTIONAL: Backdrop + Sheet (se lo usi ancora)
   Se non lo usi, puoi cancellare TUTTO questo blocco.
========================= */
.backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:20;
}

.sheet{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:30;
  background:var(--card);
  color:var(--sheetText);
  border-radius:22px 22px 0 0;
  box-shadow:0 -20px 70px rgba(0,0,0,.35);
  transform:translateY(102%);
  transition:transform .22s ease;
  max-height:88vh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.sheet.open{ transform:translateY(0); }

.sheet-handle{
  width:54px;
  height:6px;
  border-radius:999px;
  background:#d6dde6;
  margin:10px auto 6px;
}

.sheet-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:10px 18px 0;
}

.sheet-title{ font-weight:1000; font-size:18px; }
.sheet-sub{ color:var(--sheetMuted); font-size:13px; margin-top:3px; }

.sheet-close{
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:18px;
  padding:10px;
  color:#334155;
}

/* Mobile spacing: evita che la tastiera copra il form */
@supports (height: 100dvh){
  .hero{ min-height:100dvh; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .chevron-icon{ animation: bounce 3s infinite; } /* più lento e meno invasivo */
}

/* ========= NUOVO LAYOUT HERO ========= */

/* (A) la content resta uguale, ma diamo spazio più pulito */
.content{
  gap: 18px; /* se vuoi aria tra blocchi */
}

/* (B) poster-block: elementi “in alto” */
.poster-block{
  display: grid;
  gap: 14px;
  max-width: 980px;
}

/* (C) titolo + prezzo su una riga */
.headline-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}

/* Titolo grande */
.poster-kicker{
  font-weight:700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
}

/* Sottotitolo più piccolo, UNA riga */
.poster-subline{
  margin-top: 6px;
  font-size: clamp(28px, 2vw, 52px);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

/* Prezzo: lo trasformiamo da absolute a “in riga” */
.price-badge{
  position: static;              /* <-- importante */
  align-self: flex-start;        /* resta in alto */
  margin-top: 2px;               /* micro-allineamento: regola a gusto */
  background: rgba(160,20,20,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.205);
  
}

.price-top{ font-size: clamp(16px, 2vw, 24px); }
.price-value{ 
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 700; 
}

/* (D) riquadri semi-trasparenti */
.glass{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.glass-lg{ padding: 14px 16px; }
.glass-sm{
  display:inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  width: fit-content;
}

/* ====== 3 blocchi affiancati ====== */
.metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-width: 820px;     /* evita che si allarghino troppo */
}

/* card “glass” */
.metric{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display:flex;
  align-items:center;
  justify-content: center; 
  text-align: center;
  gap: 12px;
  min-height: 74px;
}

/* numero grande */
.metric-big{
  font-weight:700;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height:1;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* testi */
.metric-title{
  font-weight:800;
  letter-spacing:.02em;
  font-size: clamp(14px, 1.4vw, 18px);
  margin: 0;
}
.metric-sub{
  font-weight:800;
  font-size: clamp(13px, 1.3vw, 16px);
  margin-top: 2px;
}

.metric-text {
   display: flex;             /* ✅ AGGIUNGI */
  flex-direction: column;    /* ✅ AGGIUNGI */
  align-items: center;       /* ✅ OK ora funziona */
  justify-content: center;   /* ✅ AGGIUNGI */
}

/* blocco m² */
.metric-kicker{
  font-weight:700;
  font-size: 20px;
}
.metric-value{
  font-weight:700;
  font-size: clamp(22px, 2.4vw, 34px);
  text-shadow: 0 10px 26px rgba(0,0,0,.40);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 860px){
  .metrics{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* Mobile: badge non deve coprire */
@media (max-width: 860px){
  .headline-row{
    flex-direction: column;
    align-items: flex-start;
  }
  .price-badge{
    margin-top: 8px;
  }
}

/* ===== Foto in basso a destra ===== */
.below-row{
  display:grid;
  grid-template-columns: 1fr 320px;   /* testo | foto */
  gap: 18px;
  align-items: end;                   /* ✅ “in basso” */
  margin-top: 16px;
}

.below-photo{
  display:flex;
  justify-content:flex-end;           /* ✅ a destra */
  align-items:flex-end;               /* ✅ in basso */
}

.below-photo img{
  width: 100%;
  max-width: 340px;
  height: auto;
  display:block;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

/* Mobile: la foto va sotto e resta centrata */
@media (max-width: 860px){
  .below-row{
    grid-template-columns: 1fr;
    align-items: start;
  }
  .below-photo{
    justify-content:center;
    margin-top: 10px;
  }
}

.below-row{ position: relative; }
.below-photo{ margin-right: -18px; }

@media (min-width: 981px){
  .below-photo{ margin-right: -40px; } /* prova 30/40/60 */
}

@media (max-width: 420px){
  .topbar{
    padding: 12px 12px 0;
  }
}

#anchor-lead{
  height: 1px;
}

.lang a{
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
}
.lang a:hover{
  background: rgba(255,255,255,.18);
}