/* =========================================================
   SCALA VISTA — SCHEDE APPARTAMENTO
   CSS COMUNE A TUTTE LE PAGINE

   IMPORTANTE:
   - prezzi, mq, testi, foto e link NON si cambiano qui;
   - si modificano nei singoli file appartamento-XX.html;
   - questo CSS controlla solo layout e responsive.
   ========================================================= */

/* =========================================================
   SCALA VISTA — SCHEDA APPARTAMENTO
   File dedicato. Non modificare pages.css.
   ========================================================= */

:root{
  --apt-paper:#f3f1eb;
  --apt-white:#fff;
  --apt-ink:#252522;
  --apt-muted:#75736d;
  --apt-green:#173f37;
  --apt-gold:#b39a57;
  --apt-line:rgba(37,37,34,.16);
  --apt-shell:min(92vw,1440px);
}

.apartment-detail{
  background:var(--apt-paper);
}

.apt-shell{
  width:var(--apt-shell);
  margin:0 auto;
}

.apt-kicker{
  margin:0;
  font-size:11px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.apt-kicker--light{
  color:rgba(255,255,255,.58);
}

.apt-back{
  display:inline-block;
  color:rgba(255,255,255,.74);
  font-size:12px;
  letter-spacing:.06em;
  text-decoration:none;
  text-transform:uppercase;
}

.apt-back:hover{color:#fff}


/* HERO */

.apt-hero{
  position:relative;
  min-height:82vh;
  min-height:82svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
  background:#1a1b19;
}

.apt-hero__image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 48%;
}

.apt-hero__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(12,18,16,.78) 0%,rgba(12,18,16,.34) 52%,rgba(12,18,16,.08) 82%),
    linear-gradient(0deg,rgba(10,12,11,.65) 0%,transparent 52%);
}

.apt-hero__content{
  position:relative;
  z-index:2;
  padding-top:160px;
  padding-bottom:clamp(48px,6vw,86px);
}

.apt-hero__bottom{
  display:grid;
  grid-template-columns:1fr auto;
  gap:48px;
  align-items:end;
  margin-top:clamp(85px,16vh,180px);
}

.apt-hero h1{
  max-width:880px;
  margin:14px 0 0;
  font-size:clamp(72px,9vw,142px);
  line-height:.82;
  font-weight:500;
  letter-spacing:-.065em;
}

.apt-hero__type{
  min-width:250px;
  padding:22px 0;
  border-top:1px solid rgba(255,255,255,.38);
  border-bottom:1px solid rgba(255,255,255,.38);
}

.apt-hero__type span,
.apt-hero__type strong{
  display:block;
}

.apt-hero__type span{
  margin-bottom:8px;
  color:rgba(255,255,255,.64);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.apt-hero__type strong{
  font-size:34px;
  font-weight:400;
}


/* INTRO */

.apt-intro{
  padding:clamp(76px,10vw,150px) 0;
}

.apt-intro__grid{
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:clamp(60px,10vw,150px);
  align-items:start;
}

.apt-intro h2,
.apt-section-head h2,
.apt-details h2,
.apt-resources h2,
.apt-contact h2{
  margin:14px 0 0;
  font-size:clamp(46px,5.4vw,82px);
  line-height:.92;
  font-weight:500;
  letter-spacing:-.055em;
}

.apt-lead{
  max-width:750px;
  margin:34px 0 0;
  color:var(--apt-muted);
  font-size:clamp(17px,1.45vw,21px);
  line-height:1.65;
}

.apt-facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid var(--apt-line);
}

.apt-fact{
  min-height:128px;
  padding:24px 20px 22px 0;
  border-bottom:1px solid var(--apt-line);
}

.apt-fact:nth-child(even){
  padding-left:24px;
  border-left:1px solid var(--apt-line);
}

.apt-fact--wide{
  grid-column:1 / -1;
}

.apt-fact span,
.apt-fact strong{
  display:block;
}

.apt-fact span{
  margin-bottom:18px;
  color:var(--apt-muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.apt-fact strong{
  font-size:clamp(29px,3vw,43px);
  font-weight:400;
}


/* SECTION HEAD */

.apt-section-head{
  display:grid;
  grid-template-columns:1fr auto;
  gap:50px;
  align-items:end;
  margin-bottom:46px;
}

.apt-section-actions{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.apt-link{
  padding-bottom:5px;
  border-bottom:1px solid currentColor;
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-decoration:none;
  text-transform:uppercase;
}


/* PLAN */

.apt-plan{
  padding:clamp(70px,8vw,120px) 0;
  background:#fff;
}

.apt-plan__frame{
  position:relative;
  height:min(76vh,920px);
  min-height:620px;
  overflow:hidden;
  background:#e8e6e1;
}

.apt-plan__frame iframe{
  width:100%;
  height:100%;
  border:0;
  background:#fff;
}

.apt-plan__mobile-fallback{
  display:none;
}

.apt-caption{
  max-width:850px;
  margin:20px 0 0;
  color:var(--apt-muted);
  font-size:12px;
  line-height:1.6;
}


/* DETAILS */

.apt-details{
  padding:clamp(80px,10vw,150px) 0;
}

.apt-details__grid{
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:clamp(70px,11vw,170px);
}

.apt-details__title{
  position:sticky;
  top:130px;
  align-self:start;
}

.apt-data{
  display:grid;
  gap:62px;
}

.apt-data__group h3{
  margin:0 0 20px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.apt-data__list{
  margin:0;
  border-top:1px solid var(--apt-line);
}

.apt-data__list > div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  padding:17px 0;
  border-bottom:1px solid var(--apt-line);
}

.apt-data__list dt{
  color:var(--apt-muted);
}

.apt-data__list dd{
  margin:0;
  font-weight:500;
}

.apt-data__list .apt-data__total{
  padding-top:24px;
  padding-bottom:24px;
  color:var(--apt-ink);
}

.apt-data__list .apt-data__total dt,
.apt-data__list .apt-data__total dd{
  color:var(--apt-ink);
  font-size:20px;
}


/* GALLERY */

.apt-gallery{
  padding:clamp(80px,9vw,140px) 0;
  background:#fff;
}

.apt-section-head--gallery{
  grid-template-columns:1fr .6fr;
}

.apt-gallery__note{
  max-width:520px;
  margin:0;
  color:var(--apt-muted);
  font-size:13px;
  line-height:1.6;
}

.apt-gallery__grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  grid-template-rows:1fr 1fr;
  gap:18px;
  height:min(78vw,900px);
  max-height:900px;
}

.apt-gallery__grid figure{
  margin:0;
  overflow:hidden;
  background:#eceae5;
}

.apt-gallery__large{
  grid-row:1 / 3;
}

.apt-gallery__grid img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.apt-gallery__large img{
  object-position:center;
}


/* PRICE */

.apt-price{
  padding:clamp(78px,9vw,135px) 0;
  color:#fff;
  background:var(--apt-green);
}

.apt-price__grid{
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:clamp(70px,11vw,170px);
  align-items:start;
}

.apt-price h2{
  margin:18px 0 10px;
  font-size:clamp(58px,7.5vw,112px);
  line-height:.88;
  font-weight:500;
  letter-spacing:-.06em;
}

.apt-price__sqm{
  color:rgba(255,255,255,.6);
  font-size:13px;
}

.apt-price__label{
  margin:0 0 13px;
  color:rgba(255,255,255,.56);
  font-size:10px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.apt-price__extras{
  border-top:1px solid rgba(255,255,255,.28);
}

.apt-price__extras > div{
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding:17px 0;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.apt-price__extras strong{
  font-weight:500;
}

.apt-price__legal{
  margin:26px 0 0;
  color:rgba(255,255,255,.56);
  font-size:12px;
  line-height:1.65;
}


/* RESOURCES */

.apt-resources{
  padding:clamp(78px,9vw,135px) 0;
}

.apt-resources__grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:clamp(60px,10vw,150px);
  align-items:start;
}

.apt-resources__links{
  border-top:1px solid var(--apt-line);
}

.apt-resources__links a{
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding:23px 0;
  border-bottom:1px solid var(--apt-line);
  text-decoration:none;
}

.apt-resources__links span{
  color:var(--apt-muted);
}

.apt-resources__links strong{
  font-weight:500;
}


/* CONTACT */

.apt-contact{
  padding:clamp(82px,10vw,145px) 0;
  background:#dedbd2;
}

.apt-contact__grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:clamp(70px,11vw,170px);
}

.apt-contact__intro p:last-child{
  max-width:500px;
  margin:28px 0 0;
  color:var(--apt-muted);
  line-height:1.65;
}

.apt-form{
  position:relative;
}

.form-hp{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.apt-field{
  margin-bottom:29px;
  border-bottom:1px solid rgba(37,37,34,.34);
}

.apt-field label{
  display:block;
  margin-bottom:7px;
  color:var(--apt-muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.apt-field input{
  width:100%;
  padding:5px 0 13px;
  border:0;
  outline:0;
  border-radius:0;
  color:var(--apt-ink);
  background:transparent;
  font:inherit;
  font-size:18px;
}

.apt-privacy{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:12px;
  align-items:start;
  margin:34px 0;
  color:#514f49;
  font-size:13px;
  line-height:1.5;
}

.apt-privacy input{
  width:18px;
  height:18px;
  margin:1px 0 0;
}

.apt-submit,
.apt-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:62px;
  padding:0 24px;
  border:0;
  text-decoration:none;
  font:inherit;
  font-size:11px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
}

.apt-submit{
  width:100%;
  color:#fff;
  background:var(--apt-ink);
}

.apt-submit:hover{
  background:var(--apt-green);
}

.apt-submit:disabled{
  opacity:.6;
  cursor:wait;
}

.apt-button--dark{
  color:#fff;
  background:var(--apt-ink);
}

.apt-form-message{
  min-height:20px;
  margin:14px 0 0;
  font-size:13px;
}

.apt-form-message.is-error{
  color:#922f28;
}

.apt-success{
  display:none;
  padding:36px;
  border:1px solid rgba(37,37,34,.2);
  background:rgba(255,255,255,.28);
}

.apt-success.is-visible{
  display:block;
}

.apt-success h3{
  margin:0 0 12px;
  font-size:38px;
  font-weight:500;
  letter-spacing:-.04em;
}

.apt-success p{
  margin:0;
  color:var(--apt-muted);
  line-height:1.6;
}


/* FINAL NAV */

.apt-final-nav{
  padding:30px 0;
  border-top:1px solid var(--apt-line);
  background:var(--apt-paper);
}

.apt-final-nav a{
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-decoration:none;
  text-transform:uppercase;
}


/* TABLET */

@media (max-width: 980px){

  .apt-hero__bottom,
  .apt-intro__grid,
  .apt-details__grid,
  .apt-price__grid,
  .apt-resources__grid,
  .apt-contact__grid{
    grid-template-columns:1fr;
  }

  .apt-hero__type{
    width:min(100%,420px);
  }

  .apt-intro__grid,
  .apt-details__grid,
  .apt-price__grid,
  .apt-resources__grid,
  .apt-contact__grid{
    gap:55px;
  }

  .apt-details__title{
    position:static;
  }

  .apt-section-head,
  .apt-section-head--gallery{
    grid-template-columns:1fr;
    align-items:start;
  }

  .apt-section-actions{
    justify-content:flex-start;
  }
}


/* MOBILE */

@media (max-width: 700px){

  .apt-shell{
    width:calc(100% - 36px);
  }

  .apt-hero{
    min-height:740px;
  }

  .apt-hero__image{
    object-position:58% center;
  }

  .apt-hero__shade{
    background:
      linear-gradient(0deg,rgba(10,14,12,.84) 0%,rgba(10,14,12,.38) 72%,rgba(10,14,12,.2) 100%);
  }

  .apt-hero__content{
    padding-top:120px;
    padding-bottom:34px;
  }

  .apt-hero__bottom{
    gap:34px;
    margin-top:130px;
  }

  .apt-hero h1{
    font-size:clamp(58px,18vw,82px);
  }

  .apt-hero__type{
    min-width:0;
  }

  .apt-intro h2,
  .apt-section-head h2,
  .apt-details h2,
  .apt-resources h2,
  .apt-contact h2{
    font-size:clamp(40px,12vw,56px);
  }

  .apt-facts{
    grid-template-columns:1fr;
  }

  .apt-fact,
  .apt-fact:nth-child(even){
    min-height:auto;
    padding:18px 0;
    border-left:0;
  }

  .apt-fact--wide{
    grid-column:auto;
  }

  .apt-fact span{
    margin-bottom:8px;
  }

  .apt-plan__frame{
    height:560px;
    min-height:0;
  }

  .apt-plan__frame iframe{
    display:none;
  }

  .apt-plan__mobile-fallback{
    display:flex;
    height:100%;
    padding:36px 24px;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    gap:22px;
  }

  .apt-plan__mobile-fallback p{
    max-width:380px;
    margin:0;
    color:var(--apt-muted);
    line-height:1.55;
  }

  .apt-data__list > div{
    grid-template-columns:1fr auto;
    gap:20px;
    padding:14px 0;
    font-size:14px;
  }

  .apt-data__list .apt-data__total dt,
  .apt-data__list .apt-data__total dd{
    font-size:16px;
  }

  .apt-gallery__grid{
    display:block;
    height:auto;
  }

  .apt-gallery__grid figure{
    height:58vh;
    min-height:420px;
    margin-bottom:14px;
  }

  .apt-gallery__grid figure:nth-child(2),
  .apt-gallery__grid figure:nth-child(3){
    height:44vh;
    min-height:320px;
  }

  .apt-price h2{
    font-size:clamp(52px,15vw,76px);
  }

  .apt-resources__links a{
    display:block;
  }

  .apt-resources__links strong{
    display:block;
    margin-top:7px;
  }
}


/* =========================================================
   SCALA VISTA — MOBILE FIX SCHEDE APPARTAMENTO
   06/10/2026

   Correzioni:
   - titolo "Appartamento" sempre dentro lo schermo
   - hero più equilibrata su smartphone
   - nessun overflow orizzontale
   - gallery con aspect-ratio stabile, non più altezze in vh
   - contact/form sempre dopo la gallery, senza sovrapposizioni
   - campi form ottimizzati per iOS
   ========================================================= */

@media (max-width: 700px){

  /* Sicurezza generale contro overflow laterali */
  .apartment-detail{
    overflow-x:hidden;
  }

  .apartment-detail main,
  .apt-hero,
  .apt-intro,
  .apt-plan,
  .apt-gallery,
  .apt-contact{
    max-width:100%;
  }

  .apt-shell{
    width:calc(100% - 32px);
    max-width:100%;
  }


  /* ---------------------------------------------------------
     HERO
     --------------------------------------------------------- */

  .apt-hero{
    min-height:88svh;
  }

  .apt-hero__content{
    width:calc(100% - 32px);
    padding-top:108px;
    padding-bottom:28px;
  }

  .apt-hero__bottom{
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    margin-top:clamp(78px,16svh,118px);
  }

  .apt-hero__bottom > div:first-child{
    min-width:0;
    max-width:100%;
  }

  /*
     IMPORTANTE:
     questa misura permette alla parola "Appartamento"
     di stare interamente nello schermo anche sui telefoni
     più stretti.
  */
  .apt-hero h1{
    width:100%;
    max-width:100%;
    margin-top:12px;
    font-size:clamp(41px,12.6vw,58px);
    line-height:.88;
    letter-spacing:-.065em;
    overflow-wrap:normal;
    word-break:normal;
  }

  .apt-back{
    font-size:10px;
    line-height:1.3;
  }

  .apt-hero__type{
    width:100%;
    min-width:0;
    padding:14px 0;
  }

  .apt-hero__type strong{
    font-size:28px;
  }


  /* ---------------------------------------------------------
     TESTI / DATI
     --------------------------------------------------------- */

  .apt-intro{
    padding:64px 0 70px;
  }

  .apt-intro__grid{
    gap:42px;
  }

  .apt-intro h2,
  .apt-section-head h2,
  .apt-details h2,
  .apt-resources h2,
  .apt-contact h2{
    max-width:100%;
    font-size:clamp(36px,10.8vw,50px);
    line-height:.94;
    letter-spacing:-.05em;
  }

  .apt-lead{
    margin-top:24px;
    font-size:16px;
    line-height:1.6;
  }

  .apt-fact--price > strong{
    max-width:100%;
    font-size:clamp(38px,11.5vw,52px) !important;
    line-height:.95;
  }


  /* ---------------------------------------------------------
     PLANIMETRIA
     --------------------------------------------------------- */

  .apt-plan{
    padding:62px 0;
  }

  .apt-section-head{
    gap:28px;
    margin-bottom:30px;
  }

  .apt-plan-image{
    width:100%;
    overflow:hidden;
  }

  .apt-plan-image img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
  }

  .apt-plan-downloads a{
    box-sizing:border-box;
    width:100%;
  }


  /* ---------------------------------------------------------
     GALLERY
     Evita le altezze in vh, che su Safari mobile possono
     creare sovrapposizioni con la sezione successiva.
     --------------------------------------------------------- */

  .apt-gallery{
    position:relative;
    z-index:1;
    clear:both;
    padding:64px 0;
    overflow:hidden;
  }

  .apt-section-head--gallery{
    gap:26px;
  }

  .apt-gallery__note{
    max-width:100%;
  }

  .apt-gallery__grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:none !important;
    gap:12px;
    width:100%;
    height:auto !important;
    max-height:none !important;
  }

  .apt-gallery__grid figure,
  .apt-gallery__grid figure:nth-child(2),
  .apt-gallery__grid figure:nth-child(3){
    display:block;
    width:100%;
    height:auto !important;
    min-height:0 !important;
    margin:0;
    aspect-ratio:4 / 3;
    overflow:hidden;
  }

  .apt-gallery__large{
    grid-row:auto;
  }

  .apt-gallery__grid img{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:cover;
  }


  /* ---------------------------------------------------------
     CONTATTO / FORM
     Resta sempre nel normale flusso dopo la gallery.
     --------------------------------------------------------- */

  .apt-contact{
    position:relative;
    z-index:2;
    clear:both;
    width:100%;
    padding:64px 0 72px;
    overflow:visible;
  }

  .apt-contact__grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:38px;
    width:100%;
  }

  .apt-contact__grid > *{
    min-width:0;
    width:100%;
  }

  .apt-contact__intro{
    width:100%;
  }

  .apt-contact__intro p:last-child{
    max-width:100%;
    margin-top:20px;
    line-height:1.6;
  }

  .apt-form{
    position:relative;
    width:100%;
    max-width:100%;
    margin:0;
  }

  .apt-field{
    width:100%;
    margin-bottom:22px;
  }

  .apt-field input{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
    font-size:16px; /* evita zoom automatico su iPhone */
  }

  .apt-privacy{
    width:100%;
    grid-template-columns:18px minmax(0,1fr);
    gap:10px;
    margin:26px 0;
    font-size:12px;
    line-height:1.5;
  }

  .apt-privacy span{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .apt-submit{
    box-sizing:border-box;
    width:100%;
    min-height:58px;
    height:auto;
    padding:15px 16px;
    white-space:normal;
    line-height:1.25;
    text-align:center;
  }

  .apt-success{
    width:100%;
    box-sizing:border-box;
    padding:26px 22px;
  }

  .apt-success h3{
    font-size:30px;
  }
}


/* Telefoni molto stretti */
@media (max-width: 390px){

  .apt-shell,
  .apt-hero__content{
    width:calc(100% - 28px);
  }

  .apt-hero h1{
    font-size:clamp(39px,12.2vw,48px);
    letter-spacing:-.07em;
  }

  .apt-hero__type strong{
    font-size:25px;
  }

  .apt-intro h2,
  .apt-section-head h2,
  .apt-contact h2{
    font-size:clamp(34px,10.5vw,44px);
  }

  .apt-gallery__grid figure,
  .apt-gallery__grid figure:nth-child(2),
  .apt-gallery__grid figure:nth-child(3){
    aspect-ratio:1 / 1;
  }
}



/* ============================================================
   SCALA VISTA — FIX FORM MOBILE
   CSS-ONLY: non modifica testi, prezzi, link o HTML.
   Aggiunto 06/10/2026
   ============================================================ */

@media (max-width: 700px) {

  .apartment-detail .apt-contact {
    clear: both !important;
    position: relative !important;
    width: 100% !important;
    padding: 54px 0 62px !important;
    overflow: hidden !important;
  }

  .apartment-detail .apt-contact .apt-shell {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .apartment-detail .apt-contact__grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 38px !important;
    align-items: start !important;
    width: 100% !important;
  }

  .apartment-detail .apt-contact__grid > div,
  .apartment-detail .apt-contact__intro {
    width: 100% !important;
    min-width: 0 !important;
  }

  .apartment-detail .apt-contact h2 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 0 !important;
    font-size: clamp(42px, 12vw, 54px) !important;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
  }

  .apartment-detail .apt-contact__intro p:last-child {
    max-width: 100% !important;
    margin: 24px 0 0 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  /* FORM */
  .apartment-detail .apt-form {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .apartment-detail .apt-field {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    border-bottom: 1px solid rgba(37,37,34,.34) !important;
    box-sizing: border-box !important;
  }

  .apartment-detail .apt-field label {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .apartment-detail .apt-field input {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;

    /* reset del problema visto su iPhone */
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    margin: 0 !important;
    padding: 3px 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;

    font-size: 16px !important;
    line-height: 1.25 !important;

    -webkit-appearance: none !important;
    appearance: none !important;
  }

  /* Privacy */
  .apartment-detail .apt-privacy {
    display: grid !important;
    grid-template-columns: 20px minmax(0,1fr) !important;
    gap: 11px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 25px 0 26px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .apartment-detail .apt-privacy input {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
  }

  .apartment-detail .apt-privacy span {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
  }

  /* CTA */
  .apartment-detail .apt-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 15px 18px !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: .09em !important;
  }

  .apartment-detail .apt-form-message {
    min-height: 0 !important;
    margin: 10px 0 0 !important;
  }
}

@media (max-width: 390px) {
  .apartment-detail .apt-contact .apt-shell {
    width: calc(100% - 28px) !important;
  }

  .apartment-detail .apt-contact h2 {
    font-size: clamp(39px, 11.5vw, 48px) !important;
  }

  .apartment-detail .apt-submit {
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: 9.5px !important;
  }
}
