/* =========================================================
   Fideiussioni e Cauzioni.it - Personalizzazioni sopra Bootstrap 5.3
   Colori logo: blu #004786, verde #008844
   ========================================================= */

/* ---------- Font Inter (ospitato sul sito) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
}

/* ---------- Variabili brand e override Bootstrap ---------- */
:root {
  --brand-blu: #004786;
  --brand-blu-scuro: #00335f;
  --brand-blu-notte: #002444;
  --brand-verde: #008844;
  --brand-verde-scuro: #006b35;
  --brand-tinta: #f3f7fb;
  --brand-tinta-verde: #eef8f2;
  --brand-bordo: #dfe7ef;
  --testo: #000000;
  --testo-soft: #3d4651;

  --raggio: 1rem;
  --raggio-lg: 1.5rem;
  --ombra: 0 10px 30px rgba(0, 51, 95, 0.08);
  --ombra-lg: 0 24px 60px rgba(0, 51, 95, 0.14);
  --spazio-sezione: clamp(4rem, 8vw, 7rem);

  --bs-primary: #004786;
  --bs-primary-rgb: 0, 71, 134;
  --bs-success: #008844;
  --bs-success-rgb: 0, 136, 68;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: #000000;
  --bs-body-bg: #ffffff;
  --bs-heading-color: var(--brand-blu);
  --bs-link-color: #004786;
  --bs-link-color-rgb: 0, 71, 134;
  --bs-link-hover-color: #008844;
  --bs-link-hover-color-rgb: 0, 136, 68;
  --bs-border-color: var(--brand-bordo);
  --bs-border-radius: 0.75rem;
  --bs-secondary-color: #3d4651;
  --bs-focus-ring-color: rgba(0, 136, 68, 0.45);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 6rem; }
main:focus { outline: none; }

body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Nessun corsivo nel sito */
em, i:not([class*="fa-"]), cite, address, dfn, var { font-style: normal; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

strong, b { font-weight: 600; }

a { text-underline-offset: 0.2em; transition: color 0.2s ease; }

/* Focus ben visibile su tutti gli elementi interattivi */
:focus-visible {
  outline: 3px solid var(--brand-verde);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--brand-blu);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
}

.text-accent { color: var(--brand-verde); }

/* ---------- Pulsanti ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.65rem;
  --bs-btn-border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-padding-y: 0.85rem; --bs-btn-font-size: 1.0625rem; min-height: 52px; }

.btn-primary {
  --bs-btn-bg: var(--brand-blu);
  --bs-btn-border-color: var(--brand-blu);
  --bs-btn-hover-bg: var(--brand-blu-scuro);
  --bs-btn-hover-border-color: var(--brand-blu-scuro);
  --bs-btn-active-bg: var(--brand-blu-notte);
  --bs-btn-active-border-color: var(--brand-blu-notte);
}
.btn-success {
  --bs-btn-bg: var(--brand-verde);
  --bs-btn-border-color: var(--brand-verde);
  --bs-btn-hover-bg: var(--brand-verde-scuro);
  --bs-btn-hover-border-color: var(--brand-verde-scuro);
  --bs-btn-active-bg: var(--brand-verde-scuro);
  --bs-btn-active-border-color: var(--brand-verde-scuro);
  box-shadow: 0 10px 24px rgba(0, 136, 68, 0.25);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-blu);
  --bs-btn-border-color: var(--brand-blu);
  --bs-btn-hover-bg: var(--brand-blu);
  --bs-btn-hover-border-color: var(--brand-blu);
  --bs-btn-active-bg: var(--brand-blu-scuro);
  border-width: 2px;
}
.btn-light {
  --bs-btn-color: var(--brand-blu);
  --bs-btn-hover-color: var(--brand-blu-scuro);
  --bs-btn-hover-bg: #e8f0f7;
}
.btn:hover { transform: translateY(-2px); }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-blu);
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-arrow .fa-arrow-right { transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--brand-verde); }
.link-arrow:hover .fa-arrow-right { transform: translateX(4px); }

/* ---------- Header / navbar ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 51, 95, 0.1);
  border-bottom-color: var(--brand-bordo);
}
.navbar { --bs-navbar-padding-y: 0.9rem; }
.brand-logo { height: auto; width: 220px; max-width: 62vw; }
.navbar-toggler {
  border: 2px solid var(--brand-blu);
  color: var(--brand-blu);
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  /* Icona centrata nel pulsante */
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.navbar-toggler .fa-bars { display: block; line-height: 1; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-nav .nav-link {
  color: var(--testo);
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 999px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--brand-blu); }
.navbar-nav .nav-link.active:not(.nav-cta) { background: var(--brand-tinta); }
/* Pulsante "Richiedi Fideiussione Online": stesso padding in ogni stato, nessuno spostamento al passaggio del mouse */
.navbar .navbar-nav .nav-link.nav-cta,
.navbar .navbar-nav .nav-link.nav-cta:hover,
.navbar .navbar-nav .nav-link.nav-cta:focus-visible,
.navbar .navbar-nav .nav-link.nav-cta.active { color: #fff; background-color: var(--brand-verde); padding: 0.65rem 1.25rem; transform: none; }
.navbar .navbar-nav .nav-link.nav-cta:hover,
.navbar .navbar-nav .nav-link.nav-cta.active { background-color: var(--brand-verde-scuro); }

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 0.5rem; }
  /* Ombra sfumata sotto il menu aperto da smartphone */
  .site-header.menu-aperto {
    background: #ffffff;
    box-shadow: 0 24px 40px -12px rgba(0, 36, 68, 0.35);
    border-bottom-color: var(--brand-bordo);
  }
  .navbar-nav .nav-cta { margin-top: 0.5rem; justify-content: center; }
}
@media (min-width: 992px) {
  .brand-logo { width: 260px; }
  .navbar-nav .nav-link { white-space: nowrap; }
}
/* Schermi desktop piccoli: logo e voci leggermente più compatti per stare su una riga */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-logo { width: 190px; }
  .navbar .navbar-nav .nav-link { font-size: 0.9rem; padding-left: 0.5rem; padding-right: 0.5rem; }
  .navbar .navbar-nav .nav-link.nav-cta,
  .navbar .navbar-nav .nav-link.nav-cta:hover,
  .navbar .navbar-nav .nav-link.nav-cta:focus-visible,
  .navbar .navbar-nav .nav-link.nav-cta.active { padding: 0.65rem 1rem; }
}

/* ---------- Titoli di sezione ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-verde);
  margin-bottom: 1rem;
}
.display-title {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--brand-blu);
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand-blu);
  margin-bottom: 1.25rem;
}
.section-title-sm { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.section-head { max-width: 50rem; margin-bottom: 3rem; }
.section-lead, .hero-lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--testo); }

.section { padding-block: var(--spazio-sezione); border-top: 10px solid rgba(236,236,236,1.00);}
.section-tint { background: var(--brand-tinta); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-tinta) 100%);
}
/* Anelli decorativi ispirati al logo */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 520px;
  height: 520px;
  border: 46px solid rgba(0, 71, 134, 0.06);
  top: -220px;
  right: -160px;
}
.hero::after {
  width: 380px;
  height: 380px;
  border: 36px solid rgba(0, 136, 68, 0.07);
  bottom: -200px;
  left: -140px;
}
.hero .container { position: relative; z-index: 1; }

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.hero-points .fa-circle-check { color: var(--brand-verde); }

.hero-media { position: relative; padding: 0 0 2rem 0; }
.hero-img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: var(--raggio-lg);
  box-shadow: var(--ombra-lg);
}
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--raggio);
  box-shadow: var(--ombra-lg);
  padding: 0.9rem 1.1rem;
  max-width: 15rem;
}
.hero-float-a { left: 1rem; bottom: 0; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.hero-float-b { right: 1rem; top: 1rem; }
.hero-float-num { font-size: 1.75rem; font-weight: 800; color: var(--brand-verde); line-height: 1; letter-spacing: -0.02em; }
.hero-float-txt { font-size: 0.875rem; line-height: 1.35; }
.hero-float .fa-earth-europe { font-size: 1.75rem; color: var(--brand-blu); }

@media (min-width: 992px) {
  .hero-media { padding: 0 0 2rem 2rem; }
  .hero-float-a { left: 0; }
  .hero-float-b { right: -1rem; top: 2rem; }
}

/* ---------- Card prodotti principali ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--brand-bordo);
  border-radius: var(--raggio-lg);
  overflow: hidden;
  box-shadow: var(--ombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--ombra-lg); }
.product-card-media { position: relative; }
.product-card-media img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.product-card-icon {
  position: absolute;
  left: 1.25rem;
  bottom: -1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--brand-verde);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 20px rgba(0, 136, 68, 0.3);
}
.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2.5rem 1.5rem 1.5rem;
}
.product-card-title { font-size: 1.375rem; color: var(--brand-blu); margin-bottom: 0.75rem; }

/* ---------- Banda numeri ---------- */
.numbers {
  background: var(--brand-blu);
  background-image: radial-gradient(circle at 85% 20%, rgba(0, 136, 68, 0.35) 0, transparent 45%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.number-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
}
.numbers li:nth-child(even) .number-icon { background: rgba(0, 136, 68, 0.55); border-color: rgba(255, 255, 255, 0.3); }
.number-val {
  display: block;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.number-lbl { display: block; margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.45; }

/* ---------- Chi siamo ---------- */
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--raggio-lg);
  box-shadow: var(--ombra-lg);
}
.about-media { position: relative; }
.about-media::after {
  content: "";
  position: absolute;
  inset: auto auto -1.25rem -1.25rem;
  width: 45%;
  height: 45%;
  border-radius: var(--raggio-lg);
  background: var(--brand-tinta-verde);
  z-index: -1;
}
.feature {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--brand-bordo);
  border-radius: var(--raggio);
  background: #fff;
}
.feature-icon {
  flex: 0 0 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--brand-tinta);
  color: var(--brand-blu);
  font-size: 1.25rem;
}
.feature-title { font-size: 1.125rem; margin-bottom: 0.35rem; }

/* ---------- Accordion categorie fideiussioni ---------- */
.accordion-cat {
  --bs-accordion-border-color: var(--brand-bordo);
  --bs-accordion-border-radius: var(--raggio);
  --bs-accordion-inner-border-radius: var(--raggio);
  --bs-accordion-btn-padding-y: 1.25rem;
  --bs-accordion-btn-padding-x: 1.5rem;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--brand-blu);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 136, 68, 0.35);
  --bs-accordion-body-padding-x: 1.5rem;
  --bs-accordion-body-padding-y: 0.5rem 1.75rem;
  display: grid;
  gap: 1rem;
}
.accordion-cat .accordion-item {
  border: 1px solid var(--brand-bordo);
  border-radius: var(--raggio);
  overflow: hidden;
  box-shadow: var(--ombra);
}
.accordion-cat .accordion-button {
  gap: 1rem;
  color: var(--brand-blu);
  font-weight: 800;
}
.accordion-cat .accordion-button:not(.collapsed) { box-shadow: none; }
.acc-icon {
  flex: 0 0 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--brand-blu);
  color: #fff;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
}
.accordion-button:not(.collapsed) .acc-icon { background: var(--brand-verde); }
.acc-label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.acc-title { font-size: clamp(1.0625rem, 1.8vw, 1.3rem); letter-spacing: -0.01em; line-height: 1.25; }
.acc-count { font-size: 0.8125rem; font-weight: 600; color: var(--testo-soft); }
.badge-top {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-tinta-verde);
  color: var(--brand-verde-scuro);
}
.acc-intro { font-size: 1.0625rem; max-width: 52rem; margin-bottom: 1.5rem; }

.guarantee {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--raggio);
  background: var(--brand-tinta);
  transition: background-color 0.2s ease;
}
.guarantee:hover { background: #e9f1f8; }
.guarantee-icon {
  flex: 0 0 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--brand-verde);
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 51, 95, 0.08);
}
.guarantee-title { font-size: 1.125rem; margin-bottom: 0.4rem; color: var(--brand-blu); }
.guarantee p { font-size: 0.975rem; line-height: 1.65; }

/* ---------- Passaggi ---------- */
/* Foto larga e bassa sotto il titolo "La tua fideiussione in 4 passaggi" */
.steps-media { margin: -1rem 0 2.5rem; }
.steps-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--raggio-lg);
  box-shadow: var(--ombra);
}
@media (min-width: 768px) {
  .steps-media img { aspect-ratio: 4 / 1; }
}
.step {
  position: relative;
  height: 100%;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: var(--raggio-lg);
  background: #fff;
  border: 1px solid var(--brand-bordo);
}
.step-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand-blu);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.steps li:nth-child(even) .step-num { background: var(--brand-verde); }
.step-title { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ---------- Beneficiari ---------- */
.section-beneficiari { padding-block: clamp(3rem, 6vw, 5rem); }
.beneficiaries {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--raggio-lg);
  background: #fff;
  box-shadow: var(--ombra);
  text-align: center;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.chips li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--brand-bordo);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--brand-blu);
  background: var(--brand-tinta);
}

/* ---------- Call to action ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-blu) 0%, var(--brand-blu-scuro) 60%, #00513a 100%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.cta-title { color: #fff; font-size: clamp(1.625rem, 3.2vw, 2.5rem); margin-bottom: 0.75rem; }

/* ---------- FAQ ---------- */
.accordion-faq {
  --bs-accordion-border-color: var(--brand-bordo);
  --bs-accordion-btn-padding-y: 1.15rem;
  --bs-accordion-active-bg: var(--brand-tinta);
  --bs-accordion-active-color: var(--brand-blu);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 136, 68, 0.35);
}
.accordion-faq .accordion-button { font-weight: 600; font-size: 1.0625rem; color: var(--testo); }
.accordion-faq .accordion-button:not(.collapsed) { color: var(--brand-blu); }
.accordion-faq .accordion-header { font-size: inherit; margin: 0; }

/* ---------- Contatti ---------- */
.contact-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--raggio-lg);
  background: #fff;
  box-shadow: var(--ombra);
}
.contact-title { font-size: 1.25rem; margin-bottom: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; margin-bottom: 0.9rem; line-height: 1.5; }
.contact-list li > .fa-solid {
  flex: 0 0 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: var(--brand-tinta);
  color: var(--brand-blu);
}
.contact-list a { font-weight: 600; }

.map-ratio {
  border-radius: var(--raggio-lg);
  overflow: hidden;
  background: #e6edf4;
  box-shadow: var(--ombra);
  min-height: 320px;
}
.map-ratio iframe, .jotform-wrap iframe { border: 0; width: 100%; }

/* Segnaposto per contenuti esterni (mappa, modulo) */
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  height: 100%;
  background: linear-gradient(135deg, #eef4fa 0%, #e7f3ec 100%);
}
.embed-placeholder > .fa-solid { font-size: 2.5rem; color: var(--brand-blu); margin-bottom: 1rem; }
.embed-placeholder-title { font-weight: 800; color: var(--brand-blu); font-size: 1.15rem; margin-bottom: 0.5rem; }
.embed-placeholder .small { max-width: 30rem; }

/* ---------- Partnership ---------- */
.partners { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--brand-bordo); }
.partners .section-head { margin-bottom: 2rem; }
.partners-img { display: block; margin-inline: auto; width: 100%; max-width: 1100px; }

/* ---------- Pagine interne ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-tinta) 100%);
}
.page-hero-sm .display-title { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.breadcrumb { --bs-breadcrumb-divider-color: var(--testo-soft); font-size: 0.9rem; margin-bottom: 1.5rem; }
.breadcrumb a { font-weight: 600; text-decoration: none; }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--raggio-lg);
  background: #fff;
  border: 1px solid var(--brand-bordo);
  box-shadow: var(--ombra);
}
.jotform-wrap {
  border-radius: var(--raggio);
  overflow: hidden;
  min-height: 420px;
}
.jotform-wrap iframe { height: 540px; display: block; }
.form-card:has(.jotform-wrap) { background-color: #f8f8f8; }
.jotform-fallback { padding: 2rem 0; text-align: center; }
.jotform-wrap .embed-placeholder { min-height: 420px; border-radius: var(--raggio); }

.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23008844' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.7-4.5 4.6a.8.8 0 0 1-1.1 0L4.3 8.5a.8.8 0 1 1 1.1-1.1l1.3 1.3 3.9-4a.8.8 0 0 1 1.1 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Testo legale */
.toc { position: sticky; top: 7rem; padding: 1.5rem; border-radius: var(--raggio); background: var(--brand-tinta); }
.toc-title { font-weight: 800; color: var(--brand-blu); margin-bottom: 0.75rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { text-decoration: none; font-weight: 600; font-size: 0.95rem; display: inline-block; padding-block: 0.3rem; }
.legal-text section { margin-bottom: 3rem; }
.legal-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.legal-text h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.legal-text caption { caption-side: top; color: var(--testo-soft); font-size: 0.9rem; }
.legal-text table { font-size: 0.95rem; }
.legal-text th { color: var(--brand-blu); background: var(--brand-tinta); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-blu-notte);
  color: #dfe8f1;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  font-size: 0.95rem;
}
.site-footer a, .footer-link-btn { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover, .footer-link-btn:hover { color: #8fe0b4; }
.site-footer .btn-success { color: #fff; text-decoration: none; }
.footer-link-btn { font-size: inherit; min-height: 0; font-weight: 400; vertical-align: baseline; border: 0; }
.footer-logo { width: 240px; height: auto; }
.footer-title { color: #fff; font-size: 1.0625rem; margin-bottom: 1rem; letter-spacing: 0; }
.footer-list li { margin-bottom: 0.55rem; line-height: 1.55; }
.footer-social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
}
.footer-social:hover { background: var(--brand-verde); color: #fff !important; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  line-height: 1.65;
}
.footer-bottom {
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* ---------- Pulsante torna su ---------- */
.btn-torna-su {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-verde);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-torna-su.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.btn-torna-su:hover { color: #fff; background: var(--brand-verde-scuro); }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  padding: 1rem 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--brand-bordo);
  border-radius: var(--raggio-lg);
  box-shadow: 0 20px 60px rgba(0, 36, 68, 0.25);
}
.cookie-title { font-size: 1.15rem; margin-bottom: 0.5rem; padding-right: 2.5rem; }
.cookie-text p { font-size: 0.925rem; line-height: 1.6; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--testo);
  font-size: 1.15rem;
}
.cookie-close:hover { background: var(--brand-tinta); }
@media (min-width: 992px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; gap: 2rem; padding: 1.5rem 3.5rem 1.5rem 2rem; }
  .cookie-actions { flex: 0 0 auto; flex-wrap: nowrap; }
}
.cookie-cat { padding: 1rem 0; border-bottom: 1px solid var(--brand-bordo); }
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat .form-check-label { font-weight: 600; }
.form-check-input:checked { background-color: var(--brand-verde); border-color: var(--brand-verde); }
.modal-title { color: var(--brand-blu); }

/* ---------- Animazioni di comparsa ---------- */
/* Gli elementi vengono nascosti solo se JavaScript è attivo (classe "js" su <html>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .product-card:hover { transform: none; }
}

/* =========================================================
   AGGIORNAMENTO OTTOBRE 2026
   WhatsApp, VIES, emissione 8/24 ore, confronto banca/assicurazione
   ========================================================= */
:root {
  --whatsapp: #25d366;
  --whatsapp-scuro: #128c4b;
  --rosso-soft: #b42318;
}

/* ---------- WhatsApp: pulsante fisso in basso al centro ---------- */
.whatsapp-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  margin-inline: auto;
  z-index: 1040;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible { color: #fff; background: var(--whatsapp-scuro); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3); }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}
/* Spazio in fondo alla pagina per non coprire il testo del footer */
.footer-bottom { padding-bottom: 5.5rem; }

/* Indirizzi email lunghi: vanno a capo invece di uscire dallo schermo */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Pulsante e etichette WhatsApp */
.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--whatsapp-scuro);
  --bs-btn-border-color: var(--whatsapp-scuro);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0e7a40;
  --bs-btn-hover-border-color: #0e7a40;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0e7a40;
}
.wa-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #e7f8ee;
  color: var(--whatsapp-scuro) !important;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.wa-chip:hover { background: var(--whatsapp-scuro); color: #fff !important; }
.wa-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--whatsapp-scuro);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}
.contact-list li > .fa-whatsapp {
  flex: 0 0 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: #e7f8ee;
  color: var(--whatsapp-scuro);
  font-size: 1.2rem;
}
.site-footer .fa-whatsapp { color: var(--whatsapp); }

/* ---------- Prodotto VIES in evidenza (card orizzontale) ---------- */
.product-card-wide { border: 2px solid var(--brand-verde); }
.badge-new {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-tinta-verde);
  color: var(--brand-verde-scuro);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.vies-mini { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.25rem 0 1.25rem; }
.vies-mini li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--brand-blu); font-size: 0.95rem; }
.vies-mini .fa-solid, .vies-mini .fa-regular { color: var(--brand-verde); }
@media (min-width: 992px) {
  .product-card-wide { flex-direction: row; }
  .product-card-wide .product-card-media { flex: 0 0 40%; }
  .product-card-wide .product-card-media img { height: 100%; aspect-ratio: auto; }
  .product-card-wide .product-card-icon { left: auto; right: -1.6rem; bottom: auto; top: 1.5rem; }
  .product-card-wide .product-card-body { padding: 2.25rem 2.5rem 2.25rem 3rem; }
  .product-card-wide .product-card-title { font-size: 1.75rem; }
}
.guarantee-evidenza { background: var(--brand-tinta-verde); box-shadow: inset 0 0 0 2px rgba(0, 136, 68, 0.35); }
.guarantee-evidenza:hover { background: #e2f3e9; }

/* ---------- Fascia emissione garantita 8 / 24 ore ---------- */
.emissione-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--raggio-lg);
  background: linear-gradient(120deg, var(--brand-verde) 0%, var(--brand-verde-scuro) 55%, var(--brand-blu) 100%);
  color: #fff;
  box-shadow: var(--ombra-lg);
}
.emissione-testo { display: flex; gap: 1rem; align-items: flex-start; }
.emissione-icon {
  flex: 0 0 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.5rem;
}
.emissione-kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.35rem; opacity: 0.95; }
.emissione-frase { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; }
.emissione-frase strong { font-weight: 800; }
.emissione-tempi { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.emissione-tempi li:not(.emissione-oppure) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-blu);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.emissione-num { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.emissione-unita { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-verde-scuro); }
.emissione-oppure { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
@media (min-width: 992px) {
  .emissione-box { flex-direction: row; align-items: center; justify-content: space-between; }
  .emissione-testo { max-width: 40rem; }
}

/* ---------- Confronto fideiussione bancaria / assicurativa ---------- */
.confronto { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--brand-bordo); }
.confronto-title { font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.15; margin-bottom: 1.25rem; }
.confronto-vantaggi { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.confronto-vantaggi li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--raggio);
  background: var(--brand-tinta-verde);
  font-size: 0.925rem;
  line-height: 1.4;
}
.confronto-vantaggi .fa-solid { color: var(--brand-verde); font-size: 1.15rem; margin-top: 0.15rem; }
.confronto-vantaggi strong { display: block; color: var(--brand-blu); font-weight: 800; }
.tabella-confronto-wrap {
  border-radius: var(--raggio-lg);
  overflow-x: auto;
  border: 1px solid var(--brand-bordo);
  box-shadow: var(--ombra);
  background: #fff;
}
.tabella-confronto { --bs-table-bg: #fff; font-size: 0.975rem; }
.tabella-confronto caption { caption-side: top; padding: 1rem 1.25rem; font-weight: 600; color: var(--brand-blu); background: var(--brand-tinta); }
.tabella-confronto th, .tabella-confronto td { padding: 0.75rem 1rem; vertical-align: middle; border-color: var(--brand-bordo); }
.tabella-confronto thead th {
  background: var(--brand-blu);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tabella-confronto thead th .fa-solid { margin-right: 0.4rem; }
.tabella-confronto thead .col-assic { background: var(--brand-verde); }
.tabella-confronto tbody th[scope="row"] { font-weight: 400; color: var(--testo); width: 56%; }
.tabella-confronto tr.gruppo th {
  background: #eef2f6;
  color: var(--brand-blu);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.tabella-confronto td:last-child { background: #f6fbf8; }
.v { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; white-space: nowrap; }
.v-ok { color: var(--brand-verde-scuro); }
.v-ko { color: var(--rosso-soft); }
.v-pari { color: var(--testo-soft); }
.tabella-nota { font-size: 0.85rem; color: var(--testo-soft); margin: 1rem 0 1.5rem; line-height: 1.6; }
.tabella-nota .v { margin-right: 0.5rem; }
@media (max-width: 575.98px) {
  .tabella-confronto { font-size: 0.875rem; }
  .tabella-confronto th, .tabella-confronto td { padding: 0.6rem 0.5rem; }
  .tabella-confronto thead th { font-size: 0.75rem; letter-spacing: 0; }
  .tabella-confronto thead th .fa-solid { display: none; }
  .tabella-confronto .v { gap: 0.25rem; }
}

/* ---------- Pagina Garanzia Finanziaria VIES ---------- */
.vies-scheda {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--raggio-lg);
  background: #fff;
  border: 2px solid var(--brand-verde);
  box-shadow: var(--ombra-lg);
}
.vies-scheda-title { font-size: 1.25rem; margin-bottom: 1.25rem; }
.vies-scheda-title .fa-solid { color: var(--brand-verde); }
.vies-scheda-list > div { padding: 0.75rem 0; border-top: 1px solid var(--brand-bordo); }
.vies-scheda-list dt { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-verde-scuro); }
.vies-scheda-list dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--brand-blu); line-height: 1.45; }

.vies-box { padding: 1.5rem; border-radius: var(--raggio-lg); }
.vies-box-no { background: #fdf3f2; }
.vies-box-si { background: var(--brand-tinta-verde); box-shadow: inset 0 0 0 2px rgba(0, 136, 68, 0.3); }
.vies-box-title { font-weight: 800; margin-bottom: 1rem; }
.vies-box-no .vies-box-title { color: var(--rosso-soft); }
.vies-box-si .vies-box-title { color: var(--brand-verde-scuro); }
.vies-box li { position: relative; padding-left: 1.1rem; margin-bottom: 0.6rem; font-size: 0.95rem; line-height: 1.5; }
.vies-box li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; opacity: 0.5; }

.callout {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--raggio-lg);
  background: var(--brand-tinta);
  border-left: 6px solid var(--brand-blu);
}
.callout-title { font-weight: 800; color: var(--brand-blu); font-size: 1.125rem; }

.tabella-requisiti-wrap {
  max-width: 60rem;
  margin-inline: auto;
  border-radius: var(--raggio-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ombra);
}
.tabella-requisiti { --bs-table-bg: #fff; margin: 0; }
.tabella-requisiti th, .tabella-requisiti td { padding: 1rem 1.25rem; border-color: var(--brand-bordo); vertical-align: middle; }
.tabella-requisiti th { width: 32%; color: var(--brand-blu); font-weight: 800; white-space: nowrap; }
.tabella-requisiti th .fa-solid, .tabella-requisiti th .fa-regular { color: var(--brand-verde); width: 1.5rem; margin-right: 0.5rem; }
.tabella-requisiti tr:last-child th, .tabella-requisiti tr:last-child td { border-bottom: 0; }
@media (max-width: 575.98px) {
  .tabella-requisiti tr { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--brand-bordo); }
  .tabella-requisiti tr:last-child { border-bottom: 0; }
  .tabella-requisiti th, .tabella-requisiti td { display: block; width: auto; padding: 0; border: 0; }
  .tabella-requisiti th { margin-bottom: 0.25rem; }
}

.avviso {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--raggio-lg);
  background: #fdf3f2;
  border-left: 6px solid var(--rosso-soft);
}
.avviso > .fa-solid { color: var(--rosso-soft); font-size: 1.5rem; margin-top: 0.15rem; }

.esempio-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--raggio-lg);
  background: linear-gradient(135deg, var(--brand-tinta) 0%, var(--brand-tinta-verde) 100%);
  border: 1px solid var(--brand-bordo);
}
.nota-legale { margin-top: 1.5rem; font-size: 0.85rem; color: var(--testo-soft); }

/* Menu con la voce VIES: voci più compatte su desktop piccoli */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav.gap-lg-3 { gap: 0.25rem !important; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-nav.gap-xl-4 { gap: 0.75rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}
