/*
Theme Name: Profiloimmobiliare Child
Theme URI: https://profiloimmobiliare.com
Description: Tema child di Profiloimmobiliare. Qui vanno tutte le personalizzazioni: non vengono sovrascritte dagli aggiornamenti del tema principale.
Author: Profiloimmobiliare
Template: profiloimmobiliare
Version: 1.0.11
Text Domain: profiloimmobiliare-child
*/

/* =========================================================================
   PERSONALIZZAZIONI CSS
   Sovrascrivono style.css del tema padre. Esempi pronti (decommenta per usarli):
   ========================================================================= */

/* Cambia i colori del brand
:root {
  --ca-primary: #c82428;
  --ca-primary-dark: #9c1b1f;
}
*/

/* Logo più grande nell'header
.ca-logo img { max-height: 56px; }
*/

/* Card con angoli meno arrotondati
:root { --ca-radius: 4px; }
*/

/* ---- Sottomenu a tendina nel menu principale ---- */
.ca-nav li { position: relative; }
.ca-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: .4rem; width: .4rem; height: .4rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.ca-nav .sub-menu { list-style: none; margin: 0; padding: .5rem 0; }
@media (min-width: 901px) {
  .ca-nav .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 260px; flex-direction: column; gap: 0;
    background: #fff; border: 1px solid var(--ca-border); border-radius: 10px; box-shadow: var(--ca-shadow); z-index: 50; }
  .ca-nav li:hover > .sub-menu, .ca-nav li:focus-within > .sub-menu { display: flex; }
  .ca-nav .sub-menu a { display: block; padding: .6rem 1rem; white-space: normal; border-bottom: 0; }
  .ca-nav .sub-menu a:hover { background: #f5f5f5; border-bottom: 0; }
}
@media (max-width: 900px) {
  .ca-nav .sub-menu { padding: 0 0 0 1rem; }
  .ca-nav .sub-menu a { font-weight: 500; }
  .ca-nav .menu-item-has-children > a::after { display: none; }
}


/* Voci con ancora (#) non evidenziate come pagina corrente */
.ca-nav .current-menu-item > a[href*="#"] { color: var(--ca-text); border-bottom: 0; }
.ca-nav .current-menu-item > a[href*="#"]:hover { color: var(--ca-primary); border-bottom: 2px solid var(--ca-primary); }


/* Logo sempre leggibile, menu piu compatto su schermi medi */
.ca-logo { flex-shrink: 0; }
.ca-logo img { width: auto; max-width: none; }
@media (min-width: 901px) and (max-width: 1280px) {
  .ca-nav ul { gap: .9rem; }
  .ca-nav a { font-size: .92rem; }
  .ca-header__cta { padding-left: .8rem; padding-right: .8rem; font-size: .9rem; }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .ca-logo img { width: 300px; height: auto; }
  .ca-header__inner { gap: .8rem; }
  .ca-header__cta { font-size: 0; gap: 0; padding: .6rem .7rem; }
  .ca-header__cta svg { margin: 0; }
}

/* Consenso privacy: testo scorrevole normale, non a colonne */
.pcrm-check { display: block; line-height: 1.5; }
.pcrm-check input { margin: 0 .5rem 0 0; vertical-align: middle; }

/* Barra di condivisione fluttuante su telefono: copriva il pulsante Invia */
.a2a_floating_style.a2a_default_style { display: none !important; }

label.pcrm-check, .pcrm-check { display: block !important; }
.pcrm-check input[type=checkbox] { display: inline-block; margin: 0 .5rem 0 0 !important; vertical-align: middle; }

/* Link rossi "Cerco casa / Vendi con noi" sopra il modulo */
.ca-sublinks { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 2rem; margin: 0 0 1.5rem; }
.ca-sublinks a { color: var(--ca-primary); font-weight: 700; font-size: 1.1rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.ca-sublinks a:hover { border-bottom-color: var(--ca-primary); text-decoration: none; }

/* Codice immobile (Rif.) grande il doppio */
.ca-single__price + small { font-size: 26.67px; line-height: 1.2; font-weight: 600; display: block; margin-top: .25rem; }

/* H1 della home con lo stesso aspetto dei titoli di sezione */
.ca-section-title h1 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* Icone di condivisione */
.ca-share { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; }
.ca-share__label { font-size: .9rem; color: var(--ca-muted); margin-right: .25rem; }
.ca-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #555; background: #f1f1f1; transition: .2s; }
.ca-share__btn svg { width: 20px; height: 20px; }
.ca-share__btn:hover, .ca-share__btn:focus-visible { background: var(--ca-primary); color: #fff; text-decoration: none; }
.ca-share--center { justify-content: flex-start; margin-bottom: 2rem; }
.ca-share { margin-top: 1.5rem; }
.ca-single .ca-share, .ca-share--center { margin-top: 0; }
