/* =====================================================
   contatti.css — Pagina Contatti
   Struttura pagina (da Contatti.html mockup):
     1. .contatti-hero          — Hero 2 colonne
     2. .contact-card           — Griglia 4 card rapide
     3. .contact-form-wrap      — Card form (colonna sinistra)
     4. .cip-panel              — Info panel (colonna destra)
     5. .sede-card              — Griglia sedi
   ===================================================== */

/* ── Dot urgency (usato in hero e info panel) ── */
.urgency-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* ── Placeholder editor Elementor ── */
.iq-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  background: var(--bg-teal);
  border: 1px dashed var(--teal-pale);
  border-radius: var(--radius-md);
  color: var(--teal-d);
  text-align: center;
}
.iq-embed-placeholder svg    { opacity: .5; }
.iq-embed-placeholder strong { font-size: 14px; }
.iq-embed-placeholder span   { font-size: 13px; opacity: .7; }


/* ══════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════ */

.contatti-hero {
  padding: 64px 0;
  background: var(--bg-soft);
}

.contatti-hero-h1 {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 16px;
}

.contatti-hero-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 520px;
  margin: 0;
}

/* Mini-card bianca */
.contatti-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
}
.contatti-hero-card--white {
  background: white;
  border: 1px solid var(--border);
}
.contatti-hero-card--teal {
  background: var(--teal-d);
}

.contatti-hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  font-size: 15px;
}

.contatti-hero-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.contatti-hero-card-sub {
  font-size: 12px;
  color: var(--ink-light);
}
.contatti-hero-card-teal-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}


/* ══════════════════════════════════════════════
   2. CARD CONTATTI RAPIDI
   ══════════════════════════════════════════════ */

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 20px);
  padding: 28px 24px;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.contact-card:hover {
  border-color: var(--teal-pale);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 20px;
}

.contact-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.contact-card-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-card-link {
  color: var(--ink);
  text-decoration: none;
}
.contact-card-link:hover { color: var(--teal); }
.contact-card-sub {
  font-size: 12px;
  color: var(--ink-light);
}


/* ══════════════════════════════════════════════
   3. FORM — sezione e card sinistra
   ══════════════════════════════════════════════ */

/* Wrapper condiviso: garantisce max-width 1200px e padding
   orizzontale su tutti i widget contatti, indipendentemente
   dalla modalità della sezione Elementor (Boxed / Full Width) */
.iq-contatti-outer {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 991px) {
  .iq-contatti-outer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 575px) {
  .iq-contatti-outer { padding-left: 16px; padding-right: 16px; }
}

/* Card bianca form */
.contact-form-wrap {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border, #e8e8e8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  padding: 40px;
  height: 100%;
}

.contact-form-lead {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 24px;
}
.contact-form-privacy {
  font-size: 12px;
  color: var(--ink-light);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 767px) {
  .contact-form-wrap { padding: 28px 20px; }
}


/* ══════════════════════════════════════════════
   4. INFO PANEL (colonna destra)
   ══════════════════════════════════════════════ */

/* Testo */
.cip-heading {
  font-size: clamp(22px, 2.5vw, 32px) !important;
}
.cip-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
}

/* Box orari */
.cip-hours-box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}
.cip-hours-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: .5px;
}

.orario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.orario-row:last-of-type { border-bottom: none; }

.orario-val--teal { color: var(--teal); font-weight: 600; }
.orario-val--gray { color: var(--ink-light); }

.cip-urgency-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-teal);
  border: 1px solid var(--teal-pale);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-d);
}

/* Box social */
.cip-social-box {
  background: var(--teal-d);
  border-radius: 16px;
  padding: 24px;
}
.cip-social-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 14px;
}
.cip-social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background .2s;
}
.cip-social-link:hover { background: rgba(255, 255, 255, .2); color: white; }


/* ══════════════════════════════════════════════
   5. SEDI
   ══════════════════════════════════════════════ */

.contatti-sedi {
  padding: var(--section-py) 0;
  background: var(--bg-soft);
}
.contatti-sedi-header { margin-bottom: 40px; }
.contatti-sedi-header .section-title { margin-bottom: 8px; }
.contatti-sedi-header .section-lead  { color: var(--ink-mid); max-width: 560px; }

/* Card sede */
.sede-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.sede-card:hover { box-shadow: var(--shadow-md); }

/* Mappa */
.sede-map {
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--teal);
}
.sede-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.sede-map-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sede-map-placeholder-inner span {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  opacity: .7;
}

/* Corpo card */
.sede-card-body {
  padding: 16px 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sede-card-tipo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.sede-card-name {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.sede-card-address {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 16px;
}

/* Righe telefono / email */
.sede-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-mid);
}
.sede-card-row svg { color: var(--teal); flex-shrink: 0; }
.sede-card-link {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color .2s;
}
.sede-card-link:hover { color: var(--teal); }

/* Link Google Maps */
.sede-maps-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--teal-pale);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.sede-maps-cta:hover { color: var(--teal-d); border-color: var(--teal); }
