/* ===== Personalizzazioni Elettrica Due C ===== */

/* Titoli h1/h2/h3 con il font del logo (Mistral bold, maiuscolo) */
h1, h2, h3 {
  font-family: 'MISTRAL', cursive !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}
h1 { font-size: 3.2rem !important; }
h2 { font-size: 2.9rem !important; }
h3 { font-size: 2.3rem !important; }
h4 { font-size: 1.4rem !important; }
h5 { font-size: 1.15rem !important; }
h4, h5 {
  font-family: 'Exo 2', sans-serif !important;
  text-transform: none;
}

/* Testi e menu: Exo 2 come font di base */
body {
  font-family: 'Exo 2', sans-serif;
}

/* Dimensioni font uniformi */
.navbar .nav-link {
  font-size: 0.95rem !important;
}
.navbar .dropdown-item {
  font-size: 0.95rem !important;
}
.btn {
  font-size: 0.875rem !important;
}
p, .mbr-text, .card-text, .accordion-body, li,
.mbr-fonts-style.display-7 {
  font-size: 1rem !important;
}

/* Leggibilità testi lunghi: interlinea entro il range consigliato (1.2-1.8em)
   e larghezza riga ottimale (66 caratteri, max 75) */
p, .mbr-text, li, .accordion-body {
  line-height: 1.6;
  max-width: 75ch;
}
.article1 .mbr-text,
.accordion-body,
.card-text {
  max-width: 66ch;
}
/* Allinea il blocco di testo alla stessa larghezza della CTA sottostante */
.article1 .content-wrap {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.article1 .mbr-text,
.article1 p.mbr-fonts-style {
  max-width: 100%;
  text-align: left;
}

/* Header (hero) delle pagine: titolo e testo centrati rispetto alla pagina */
.header3 .mbr-section-title,
.header3 .mbr-text {
  text-align: center !important;
}
.header3 .mbr-text {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Rimozione pallini decorativi davanti ai titoli su tutto il sito */
[class*="cid-"] h1:before,
[class*="cid-"] h2:before,
[class*="cid-"] h3:before {
  content: none !important;
}
[class*="cid-"] h1,
[class*="cid-"] h2,
[class*="cid-"] h3 {
  padding-left: 0 !important;
}

/* Forma dei pulsanti uniforme su tutto il sito */
.btn {
  border-radius: 8px !important;
}

/* Allineamento verticale coerente degli elementi nelle card */
.card-box {
  display: flex;
  align-items: center;
}
.item-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}
.navbar-collapse,
.navbar-nav {
  align-items: center;
}

/* Installatore autorizzato / System integrator partner: testo centrato */
.cid-vpgcB9mOCQ .content-wrap,
.cid-vc3wjGpuT7 .content-wrap {
  text-align: center;
}

/* ===== Accordion FAQ (Bootstrap 5 nativo) ===== */
.faq-section {
  margin-top: 5.5rem;
}
.faq-section .accordion-item {
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-section .accordion-button {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 1.55rem !important;
  color: #1c55a3;
  background-color: #f5f8fc;
}
.faq-section .accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: #1c55a3;
  box-shadow: none;
}
.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(28, 85, 163, 0.25);
}
.faq-section .accordion-button::after {
  filter: none;
}
.faq-section .accordion-body {
  color: #333333;
  font-size: 1.5rem;
  max-width: none !important;
}

/* ===== Card "Il nostro valore aggiunto" ===== */
@media (min-width: 768px) {
  .cid-vc4fDuMS4W .row:has(.item.features-without-image),
  .cid-vpgoTMZOGy .row:has(.item.features-without-image),
  .cid-vpgqAjlMAi .row:has(.item.features-without-image) {
    max-width: 88%;
    margin-left: auto;
    margin-right: auto;
  }
}
.cid-vc4fDuMS4W .item-wrapper {
  background: #ffffff;
  border-top: 4px solid #1c55a3;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(28, 85, 163, 0.1);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cid-vc4fDuMS4W .item-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(28, 85, 163, 0.18);
}
.cid-vc4fDuMS4W .card {
  margin-bottom: 1.5rem;
}
.cid-vc4fDuMS4W .card-box {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}
.cid-vc4fDuMS4W .iconfont-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #1c55a3;
  color: #ffffff !important;
  margin: 0 !important;
}
.cid-vc4fDuMS4W .iconfont-wrapper .mbr-iconfont {
  font-size: 1.6rem !important;
  color: #ffffff !important;
  margin: 0 !important;
}
.cid-vc4fDuMS4W .card-title {
  margin: 0 !important;
}

/* ===== Card "Automazione industriale" e "Servizi" ===== */
.cid-vpgoTMZOGy .item-wrapper,
.cid-vpgqAjlMAi .item-wrapper {
  background: #ffffff;
  border-top: 4px solid #1c55a3;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(28, 85, 163, 0.1);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cid-vpgoTMZOGy .item-wrapper:hover,
.cid-vpgqAjlMAi .item-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(28, 85, 163, 0.18);
}
.cid-vpgoTMZOGy .card,
.cid-vpgqAjlMAi .card {
  margin-bottom: 1.5rem;
}

/* ===== Footer: link rapidi con hover ===== */
.cid-vpga60Zbrn .list-wrapper .list a {
  transition: color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.cid-vpga60Zbrn .list-wrapper .list a:hover {
  color: #ffd45a !important;
  text-decoration: underline;
}
.cid-vpga60Zbrn a.text-white {
  transition: color 0.2s ease;
}
.cid-vpga60Zbrn a.text-white:hover {
  color: #ffd45a !important;
}

/* ===== Tocco "elettricista": accento a fulmine ===== */
.brand-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  color: #ffd45a;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.btn-primary {
  box-shadow: 0 4px 12px rgba(28, 85, 163, 0.25);
}

/* ===== Menu di navigazione modernizzato ===== */
.navbar.navbar-dropdown {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 2px 16px rgba(28, 85, 163, 0.12);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: box-shadow 0.25s ease;
}
.navbar.navbar-dropdown .nav-link {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
}
.navbar.navbar-dropdown .nav-link:hover {
  color: #1c55a3 !important;
}
.navbar.navbar-dropdown .dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(28, 85, 163, 0.18);
  padding: 0.5rem;
  margin-top: 0.5rem;
}
.navbar.navbar-dropdown .dropdown-item {
  border-radius: 6px;
  padding: 0.55rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.navbar.navbar-dropdown .dropdown-item:hover,
.navbar.navbar-dropdown .dropdown-item:focus,
[class*="cid-"] .navbar-nav .dropdown-item:hover,
[class*="cid-"] .navbar-nav .dropdown-item:focus {
  background-color: #1c55a3 !important;
  color: #ffffff !important;
}
.navbar.navbar-dropdown .navbar-buttons .btn {
  padding: 0.55rem 1.5rem;
  font-weight: 600;
}
.navbar.navbar-dropdown .navbar-logo-img {
  height: 3rem;
  transition: transform 0.2s ease;
}
.navbar.navbar-dropdown .navbar-logo-img:hover {
  transform: scale(1.04);
}

/* ===== Logo nel footer, più in evidenza ===== */
.cid-vpga60Zbrn .footer-logo-img {
  width: 220px !important;
  height: auto !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
.cid-vpga60Zbrn .title-wrap {
  display: flex;
  align-items: center;
}

/* ===== Mappa "click to load" (nessun cookie di terze parti finché non richiesta) ===== */
.map-embed-wrap {
  margin-top: 1.5rem;
}
.map-embed-placeholder {
  width: 100%;
  max-width: 640px;
  padding: 2.5rem 1.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.map-embed-placeholder:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}
.map-embed-placeholder span {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.map-embed-placeholder small {
  opacity: 0.8;
}
/* variante su sfondo chiaro (pagina contatti) */
.map-embed-wrap-light .map-embed-placeholder {
  border-color: rgba(28, 85, 163, 0.35);
  background: rgba(28, 85, 163, 0.05);
  color: #1c55a3;
}
.map-embed-wrap-light .map-embed-placeholder:hover {
  background: rgba(28, 85, 163, 0.1);
  border-color: #1c55a3;
}
.map-embed-wrap-light .map-embed-placeholder small {
  color: #555555;
  opacity: 1;
}

/* ===== Card contatti (telefono/cellulare/email): sfondo bianco, icone moderne ===== */
.contact-cards {
  background-color: #ffffff !important;
}
.contact-cards .item-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(28, 85, 163, 0.1);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-cards .item-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(28, 85, 163, 0.18);
}
.contact-cards .card-box {
  flex-direction: column;
}
.contact-cards .iconfont-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #1c55a3;
  margin: 0 auto 1rem auto !important;
}
.contact-cards .iconfont-wrapper .mbr-iconfont {
  font-size: 1.8rem !important;
  color: #ffffff !important;
  margin: 0 !important;
}
.contact-cards .card-title {
  text-align: center;
  width: 100%;
}

/* ===== Larghezza paragrafi: vincolo a 66-75 caratteri per riga (vedi regola in cima al file) ===== */

/* ===== Dimensione uniforme di TUTTI i bottoni del sito ===== */
.btn {
  font-size: 0.875rem !important;
  padding: 0.65rem 1.85rem !important;
  font-weight: 600;
}

/* ===== Card "valore aggiunto" / "automazione industriale" / "servizi": header blu, testo bianco ===== */
.cid-vc4fDuMS4W .item-wrapper,
.cid-vpgoTMZOGy .item-wrapper,
.cid-vpgqAjlMAi .item-wrapper {
  padding: 0;
  overflow: hidden;
  border-top: none !important;
  border-radius: 10px !important;
  height: auto !important;
}
.cid-vc4fDuMS4W .card-box,
.cid-vpgoTMZOGy .card-box,
.cid-vpgqAjlMAi .card-box {
  background: #1c55a3;
  padding: 1.1rem 1.5rem;
  margin: 0;
  gap: 0.75rem;
  min-height: 4.5rem;
  border-radius: 10px 10px 0 0 !important;
}
.cid-vc4fDuMS4W .card-text,
.cid-vpgoTMZOGy .card-text,
.cid-vpgqAjlMAi .card-text {
  padding: 1rem 1.5rem 1.25rem 1.5rem !important;
  border-radius: 0 0 10px 10px !important;
  background: #ffffff;
}
.cid-vc4fDuMS4W .card-title,
.cid-vpgoTMZOGy .card-title,
.cid-vpgqAjlMAi .card-title {
  color: #ffffff !important;
}
.cid-vc4fDuMS4W .iconfont-wrapper {
  background: rgba(255, 255, 255, 0.18);
}
.cid-vc4fDuMS4W .iconfont-wrapper .mbr-iconfont,
.cid-vpgoTMZOGy .iconfont-wrapper .mbr-iconfont,
.cid-vpgqAjlMAi .iconfont-wrapper .mbr-iconfont {
  color: #ffffff !important;
}
.cid-vc4fDuMS4W .card-text,
.cid-vpgoTMZOGy .card-text,
.cid-vpgqAjlMAi .card-text {
  padding: 1.25rem 1.75rem 1.5rem 1.75rem !important;
}

/* ===== FAQ: titolo blu ===== */
.faq-section h2 {
  color: #1c55a3 !important;
}

/* ===== CTA "Contattaci" (fondo pagine) ===== */
.cta-band {
  background: linear-gradient(135deg, #1c55a3, #143f7d) !important;
  border-radius: 16px;
  width: 100%;
  max-width: 1140px;
  margin: 2rem auto 4rem auto;
  padding: 3rem 2rem !important;
}
.cta-band .line {
  display: none;
}
.cta-band .mbr-section-title,
.cta-band h2,
.cta-band .mbr-text,
.cta-band p {
  color: #ffffff !important;
  text-align: center !important;
}
.cta-band .mbr-text,
.cta-band p {
  margin-left: auto !important;
  margin-right: auto !important;
}
.cta-band h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem) !important;
  white-space: normal;
}
@media (min-width: 992px) {
  .cta-band h2 {
    white-space: nowrap;
  }
}
.cta-band p {
  font-size: 1rem !important;
}
.cta-band .cta-btn {
  background-color: #ffffff !important;
  color: #1c55a3 !important;
  border-color: #ffffff !important;
  font-family: 'Exo 2', sans-serif !important;
  font-weight: 700 !important;
}
.cta-band .cta-btn:hover {
  background-color: #f0f4fa !important;
  transform: translateY(-2px);
}

/* ===== Logo nel footer: box bianco per farlo risaltare ===== */
.cid-vpga60Zbrn .title-wrap {
  background: #ffffff;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
}
.cid-vpga60Zbrn .footer-logo-img {
  width: 260px !important;
  height: auto !important;
  filter: none;
}

/* ===== Menu: sottolineatura hover corretta ===== */
.navbar.navbar-dropdown .nav-item {
  position: relative;
}
.navbar.navbar-dropdown .nav-link {
  position: relative !important;
  overflow: visible;
}
.navbar.navbar-dropdown .nav-link:active,
.navbar.navbar-dropdown .nav-link:focus {
  transform: none;
}

/* ===== Card contatti: sfondo blu, testo e icone bianche ===== */
.contact-cards .item {
  border-radius: 12px !important;
}
.contact-cards .item-wrapper {
  background: #1c55a3;
  border-radius: 12px !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  display: block !important;
  height: auto !important;
  padding: 1.4rem 1.25rem;
}
.contact-cards .card-box {
  background: transparent;
  display: block;
}
.contact-cards .iconfont-wrapper {
  background: rgba(255, 255, 255, 0.2);
}
.contact-cards .card-title,
.contact-cards .card-title a {
  color: #ffffff !important;
}

/* ===== Pagina Contatti: spazio sotto al menu fisso + centratura "Indicazioni" ===== */
#article1-1k {
  padding-top: 8rem !important;
}
.cid-v0OVhXStCl .content-wrap {
  text-align: center;
}
