/******************************************************
 * SINGLE IMMOBILE – SIDEBAR CONTATTO + PREROGITO
 ******************************************************/

/* --------------------------------------
   LAYOUT SIDEBAR (COLONNA DESTRA)
-------------------------------------- */

.single-immobili-layout {
    padding-top: 90px !important;
    padding-left: 14px;
    padding-right: 14px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

/* colonna sinistra: contenuto immobile (max 1000px) */
.single-immobili {
    max-width: 1000px;
    width: 100%;
    margin: 0;
}

/* colonna destra: sidebar contatto */
.immobile-contact-sidebar {
    flex: 0 0 320px;
    max-width: 360px;
    position: sticky;
    top: 80px;
}

/* box sticky interno */
.immobile-contact-sidebar-inner {
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 16px;
    margin-bottom: 32px;
    background: #f5f5f5;
    overflow: hidden;
}

.immobile-contact-sidebar-inner h2 {
    margin-top: 0;
    line-height: 1.25;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.immobile-contact-sidebar-inner p {
  font-size: 14px;
  line-height: 1.25;
}

.immobile-contact-sidebar-inner p.vr_immobile_cta {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
}

.vr_immobile_cta_container {
  display: flex;
  align-items: center;
}

.vr_immobile_cta_container a.vr_immobile_cta {
  margin: 0 auto !important;
  text-align: center;
}

/* box generico (form + agente) */
.immobile-contact-box {
    padding: 18px 20px;
}

/* box form: parte superiore grigia */
.immobile-contact-box--form {
    background: #f5f5f5;
}

/* box agente: parte inferiore bianca */
.immobile-contact-box--agent {
    background: #ffffff;
    border-top: 1px solid #e3e3e3;
}

/* titolo e sottotitolo */
.immobile-contact-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.immobile-contact-sub {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 14px;
}

/* form */
.immobile-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.immobile-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #444;
}

.immobile-contact-form input,
.immobile-contact-form textarea {
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    padding: 8px 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fff;
}

.immobile-contact-form textarea {
    resize: vertical;
    min-height: 90px;
}

.immobile-contact-form input:focus,
.immobile-contact-form textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 1px #11111111;
}

/* bottone invia */
.immobile-contact-btn {
    margin: 8px 0 0;
    border-radius: 999px;
    border: 1px solid #666;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #FFC107;
    color: #000;
    transition: .15s ease;
    width: 100%;
    text-align: center;
}

.immobile-contact-btn:hover {
    background: #FFB300;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.immobile-contact-form .immobile-contact-message.is-success {
    background: rgb(242, 255, 244);
    border: 3px solid rgb(13, 165, 28);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    font-weight: 700;
    color: #000;
    padding: 8px 12px;
}

.immobile-contact-form .immobile-contact-message.is-error {
    background: rgb(255, 242, 242);
    border: 3px solid rgb(255, 0, 0);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    font-weight: 700;
    color: #000;
    padding: 8px 12px;
}

/* privacy: checkbox + testo allineati come nei portali */
.immobile-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #444;
  margin-top: 6px;
}

.immobile-privacy input[type="checkbox"] {
  flex-shrink: 0;
}

.immobile-privacy span {
  display: inline;
  font-size: 13px;
  line-height: 1.3;
}

.immobile-privacy a {
  color: #666;
  font-weight: 700;
  text-decoration: underline;
  font-size: 13px;
  line-height: 1.3;
  transition: .15s ease;
}

.immobile-privacy a:hover {
  color: #FFB300 !important;
}

/* blocco agente / agenzia (parte bassa) */

.immobile-agent-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.immobile-agent-photo img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.immobile-agent-info {
    flex: 1;
}

.immobile-agent-name {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.immobile-agent-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.immobile-agent-phone-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.immobile-agent-phone-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* opzionale, se l’SVG usa .st0 come le altre icone */
.immobile-agent-phone-icon .st0 {
    fill: #666;
    stroke: #666;
    transition: .15s ease;
}

.immobile-agent-phone:hover .immobile-agent-phone-icon .st0 {
    fill: var(--accent);
    stroke: var(--accent);
}

.immobile-agent-phone-link {
    color: #666;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .25px;
    text-decoration: none;
    transition: .15s ease;
}

.immobile-agent-phone:hover .immobile-agent-phone-link {
  color: var(--accent);
}

.immobile-agent-separator {
    border: 0;
    border-top: 1px solid #e3e3e3;
    margin: 20px 0;
}

.immobile-agent-brand {
    text-align: left;
}

.immobile-agent-logo img {
    max-width: 160px;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.immobile-agent-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    transition: .15s ease;
}

.immobile-agent-brand-name:hover {
  color: var(--accent);
}

/* layout responsive sidebar */

@media (max-width: 991px) {
    .single-immobili-layout {
        flex-direction: column;
        gap: 24px;
    }

    .immobile-contact-sidebar {
        flex: 0 0 auto;
        max-width: 100%;
        position: static;
        top: auto;
    }

    .immobile-contact-sidebar-inner {
        position: static;
    }
}

/* --------------------------------------
   SEZIONE SPIEGAZIONE RISTRUTTURAZIONE PRE-ROGITO
-------------------------------------- */

.immobile-prerogito-info {
    margin: 40px 0 60px;
}

.immobile-prerogito-inner {
    background: #FFF7E0;
    border-radius: 14px;
    padding: 24px 22px;
    border: 1px solid #F2DDAC;
}

.immobile-prerogito-text h2,
.immobile-prerogito-text h2 span {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin: 0 0 18px;
    color: #000;
    font-weight: 800;
    text-align: center;
}

.immobile-prerogito-text h2 span {
    text-decoration: underline;
}

.immobile-prerogito-text p,
.immobile-prerogito-text span {
    font-size: 16px;
    margin: 0 0 10px;
}

.immobile-prerogito-text span {
    font-weight: 800;
}

.immobile-prerogito-text ul {
    font-size: 16px;
    margin: 0 0 10px 18px;
    padding: 0;
}

.immobile-prerogito-text li {
    font-size: 16px !important;
    margin-bottom: 4px;
}

.immobile-prerogito-note {
    font-weight: 600;
    margin: 18px auto 18px !important;
    padding: 16px;
    font-size: 18px !important;
    line-height: 1.35;
    color: #333;
    max-width: 600px;
    text-align: center;
    border: 1px solid #666;
    border-radius: 18px;
    background-color: var(--accent);
}

/* leggero respiro su desktop */
@media (min-width: 992px) {
    .immobile-prerogito-inner {
        padding: 28px 30px;
    }
}
