/* ===== Plurimac - Restyle colori globali ===== */
:root {
  --pm-navy: #1B2B4C;
  --pm-navy-dark: #12203B;
  --pm-red: #D01F29;
  --pm-red-soft: #FAECE7;
}

/* Bottoni Elementor (Contattaci, Invia, ecc.) */
.elementor-button,
a.elementor-button,
.elementor-widget-button .elementor-button {
  background-color: var(--pm-red) !important;
  border-color: var(--pm-red) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
}
.elementor-button:hover,
a.elementor-button:hover {
  background-color: var(--pm-navy) !important;
  border-color: var(--pm-navy) !important;
}

/* Titoli (solo quelli creati con il widget Titolo di Elementor,
   NON tocca gli h1/h2/h3 dentro i blocchi HTML personalizzati) */
.elementor-heading-title {
  color: var(--pm-navy) !important;
}

/* Menu di navigazione */
.elementor-nav-menu a:hover,
.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu .elementor-item-active {
  color: var(--pm-red) !important;
}

/* Link generici nel testo */
.elementor-widget-text-editor a {
  color: var(--pm-red);
}
.elementor-widget-text-editor a:hover {
  color: var(--pm-navy);
}

/* Form di contatto: campo invio */
.elementor-field-type-submit button {
  background-color: var(--pm-red) !important;
  border-radius: 4px !important;
}
.elementor-field-type-submit button:hover {
  background-color: var(--pm-navy) !important;
}

/* Bottone CTA nell'header (tema) */
.ehp-header__button--primary,
.ehp-button--primary,
a.ehp-button--primary {
  background-color: var(--pm-red) !important;
  border-color: var(--pm-red) !important;
}
.ehp-header__button--primary:hover,
.ehp-button--primary:hover {
  background-color: var(--pm-navy) !important;
  border-color: var(--pm-navy) !important;
}

/* Testo del bottone header sempre bianco e leggibile */
.ehp-header__button--primary,
.ehp-header__button--primary *,
.ehp-button--primary,
.ehp-button--primary * {
  color: #ffffff !important;
}

/* ===== Header ===== */
.ehp-header {
  background-color: #FFFFFF !important;
}
img.ehp-header__site-link,
.elementor-widget-theme-site-logo img {
  max-height: 80px !important;
  width: auto !important;
}
.ehp-header__navigation,
.elementor-nav-menu {
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ===== Footer ===== */
.pm-footer { font-family: 'Helvetica Neue', Arial, sans-serif; background:#12203B; color:#C9D2E0; padding:48px 32px 24px; }
.pm-footer__grid { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:32px; max-width:1000px; margin:0 auto 32px; }
.pm-footer__brand { font-size:18px; font-weight:700; color:#FFFFFF; margin-bottom:10px; }
.pm-footer__text { font-size:13px; line-height:1.7; color:#9FADC4; }
.pm-footer__heading { font-size:14px; font-weight:700; color:#FFFFFF; margin-bottom:12px; }
.pm-footer__link { display:block; font-size:13px; color:#C9D2E0; text-decoration:none; margin-bottom:8px; }
.pm-footer__link:hover { color:#D01F29; }
.pm-footer__bottom { text-align:center; font-size:12px; color:#7688A6; border-top:1px solid #26375A; padding-top:18px; max-width:1000px; margin:0 auto; }
@media (max-width: 700px) {
  .pm-footer__grid { grid-template-columns:1fr; gap:24px; }
}


/* ===== Sfondo texture leggera su tutto il sito (per non lasciare vuoto ai lati su schermi larghi) ===== */
body {
  background-color: #FFFFFF;
  background-image: radial-gradient(circle, #E4E8EF 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}

/* Le sezioni a piena larghezza con sfondo colorato (navy, grigio chiaro) restano piene,
   la texture si vede solo negli spazi bianchi attorno al contenuto centrale */
.pm-hero, .pm-page-hero, .pm-cta-band, .pm-why, .pm-services, .pm-team, .pm-stats {
  background-color: inherit;
}


/* ===== Form di contatto nativo Elementor ===== */
.elementor-field-group .elementor-field-textual {
  border: 1px solid #DDDDDD !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease !important;
}
.elementor-field-group .elementor-field-textual:focus {
  border-color: #D01F29 !important;
  outline: none !important;
}
.elementor-field-group label {
  color: #1B2B4C !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}


/* ===== Cookie banner ===== */
.pm-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  background: #12203B; color: #FFFFFF; padding: 18px 24px;
  display: none; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.pm-cookie-banner.pm-show { display: flex; }
.pm-cookie-banner__text { font-size: 13.5px; color: #D7DEEA; max-width: 640px; line-height: 1.6; }
.pm-cookie-banner__text a { color: #FFFFFF; text-decoration: underline; }
.pm-cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.pm-cookie-banner__btn { border: none; border-radius: 5px; padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pm-cookie-banner__btn--accept { background: #D01F29; color: #FFFFFF; }
.pm-cookie-banner__btn--accept:hover { background: #B01A23; }
.pm-cookie-banner__btn--reject { background: transparent; color: #D7DEEA; border: 1px solid rgba(255,255,255,0.3); }
.pm-cookie-banner__btn--reject:hover { border-color: #FFFFFF; color: #FFFFFF; }
@media (max-width: 700px) {
  .pm-cookie-banner { padding: 16px 18px; }
  .pm-cookie-banner__actions { width: 100%; justify-content: stretch; }
  .pm-cookie-banner__btn { flex: 1; }
}

/* ===== Mappa/embed a consenso (click-to-load) ===== */
.pm-map-gate {
  width: 100%; height: 360px; border-radius: 12px;
  background: linear-gradient(135deg, #1B2B4C 0%, #12203B 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  position: relative; overflow: hidden;
}
.pm-map-gate::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.pm-map-gate__pin { position: relative; width: 46px; height: 46px; border-radius: 50%; background: #D01F29; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(208,31,41,0.4); }
.pm-map-gate__pin svg { width: 22px; height: 22px; stroke: #FFFFFF; }
.pm-map-gate__text { position: relative; font-size: 13.5px; color: #D7DEEA; max-width: 380px; margin-bottom: 18px; line-height: 1.6; }
.pm-map-gate__btn { position: relative; background: #D01F29; color: #fff; border: none; border-radius: 6px; padding: 12px 28px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pm-map-gate__btn:hover { background: #B01A23; }
