/* ==========================================================
   linkbuilding.css
   CSS personalizzato per servizio-link-building.html
   Basato su homepage.css — adattato alla pagina Link Building
   ========================================================== */

/* ----------------------------------------------------------
   1. RESET BASE & FONT
   ---------------------------------------------------------- */

:root {
  --hero-img-w: 520px;     /* larghezza desiderata, es. 520px = quasi grandezza intera */
  --hero-img-maxh: 600px;  /* abbastanza alto da non tagliare i 572px originali */
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafb;
  color: #2c3436;
}

/* ----------------------------------------------------------
   2. MATERIAL ICONS
   ---------------------------------------------------------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */
.container-shell {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ----------------------------------------------------------
   4. DROPDOWN MENU (desktop nav)
   ---------------------------------------------------------- */
.dropdown-menu { display: none; }
.dropdown.open > .dropdown-menu { display: block; }
@media (hover: hover) {
  .dropdown:hover > .dropdown-menu { display: block; }
}
.dropdown-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
@media (hover: hover) {
  .dropdown-menu:hover { display: block; }
}

/* ----------------------------------------------------------
   5. TIPOGRAFIA / PROSE
   ---------------------------------------------------------- */
.prose-ish p { margin-top: 1rem; line-height: 1.75; }
.prose-ish p:first-child { margin-top: 0; }
.prose-ish ul { margin-top: 1rem; padding-left: 0; list-style: none; }
.prose-ish ul li {
  padding: 0.4rem 0;
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.prose-ish ul li::before {
  content: '→';
  color: #1e3a88;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ----------------------------------------------------------
   6. ACCESSIBILITÀ
   ---------------------------------------------------------- */
.focus-ring:focus-visible {
  outline: 2px solid #0e6781;
  outline-offset: 3px;
  border-radius: 10px;
}
.skip-link {
  position: absolute;
  left: -999px; top: 8px;
  background: #fff; color: #0e6781;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

/* ----------------------------------------------------------
   7. HERO — immagine catena
   max-height limita l'altezza per stare in above the fold.
   ---------------------------------------------------------- */
.lb-hero-img {
  width: 100%;
  max-width: var(--hero-img-w);
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.20);
  display: block;
}
@media (min-width: 768px) {
  .lb-hero-img {
    width: var(--hero-img-w);
    max-height: var(--hero-img-maxh);
    object-fit: contain;   /* ← era "cover" (ritagliava), ora mostra tutta l'immagine */
    object-position: center center;
  }
}
}

/* ----------------------------------------------------------
   8. IMMAGINI SEZIONI CONTENUTO
   ---------------------------------------------------------- */
.img-service {
  width: 480px;
  max-width: 100%;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

/* ----------------------------------------------------------
   9. BADGE STEP (processo link building)
   ---------------------------------------------------------- */
.lb-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background-color: #1e3a88;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.lb-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 1rem;
  color: #2c3436;
}
.lb-step-item:last-child { border-bottom: none; }

/* ----------------------------------------------------------
   10. HIGHLIGHT BOX (nota N.B.)
   ---------------------------------------------------------- */
.lb-highlight-box {
  background: linear-gradient(135deg, rgba(30,58,136,0.06) 0%, rgba(199,210,240,0.18) 100%);
  border: 1px solid rgba(30,58,136,0.12);
  border-left: 4px solid #1e3a88;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
}
.lb-highlight-box strong { color: #1e3a88; }

/* ----------------------------------------------------------
   11. FAQ ACCORDION
   ---------------------------------------------------------- */
details.lb-faq {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details.lb-faq[open] { box-shadow: 0 4px 20px rgba(30,58,136,0.08); }
details.lb-faq summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #2c3436;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
details.lb-faq summary::-webkit-details-marker { display: none; }
details.lb-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #1e3a88;
  font-weight: 700;
}
details.lb-faq[open] summary::after { content: '−'; }
details.lb-faq .faq-body {
  padding: 0 1.5rem 1.25rem;
  color: #596063;
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------
   12. BREADCRUMB
   ---------------------------------------------------------- */
.lb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #596063;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.lb-breadcrumb a { color: #1e3a88; text-decoration: none; }
.lb-breadcrumb a:hover { text-decoration: underline; }
.lb-breadcrumb span.sep { color: #9ca3af; }

/* ----------------------------------------------------------
   13. FOOTER SCURO
   ---------------------------------------------------------- */
.footer-dark {
  background-color: #222222;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-dark .footer-text { color: rgba(255,255,255,0.75); }
.footer-dark .footer-text strong,
.footer-dark .footer-heading { color: #ffffff; }
.footer-dark .footer-link { color: #fed136; }
.footer-dark .footer-link:hover { color: #fff; }
.footer-dark .footer-social-btn {
  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* ----------------------------------------------------------
   14. CTA STRIP
   ---------------------------------------------------------- */
.lb-cta-strip {
  background: linear-gradient(135deg, #1e3a88 0%, #0e6781 100%);
  border-radius: 2rem;
  padding: 2rem 2rem;       /* ridotto da 3rem — più compatto */
  text-align: center;
  color: #ffffff;
  margin-top: 3rem;          /* stacca dalla sezione FAQ sopra */
}
.lb-cta-strip h2, .lb-cta-strip h3 { color: #ffffff; }
.lb-cta-strip .btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1e3a88;
  padding: 0.875rem 2rem;    /* coerente con le altre CTA px-8 py-4 */
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.9375rem;      /* = ~15px, allineato alle altre CTA */
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lb-cta-strip .btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.20);
}

/* ----------------------------------------------------------
   15. HERO — above the fold ottimizzato
   Riduce il padding verticale della sezione hero per
   avvicinare H1, testo e CTA e contenere l'immagine
   ---------------------------------------------------------- */
.lb-hero-section {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .lb-hero-section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

/* Griglia hero: colonne affiancate, immagine a destra */
.lb-hero-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .lb-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Colonna sinistra: tutto in sequenza verticale compatta */
.lb-hero-col-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* H1 senza margine inferiore eccessivo */
.lb-hero-h1 {
  margin-bottom: 0;
  line-height: 1.08;
}

/* Sottotitolo: visibile solo su desktop, nessun gap extra */
.lb-hero-subtitle {
  margin-top: 70px;
  margin-bottom: 30px;
}