/* ==========================================================
   consulenza-blog.css
   ========================================================== */

/* ----------------------------------------------------------
   1. RESET BASE & FONT
   ---------------------------------------------------------- */
:root {
  color-scheme: light;
  --hero-img-w: 70%;           /* Modifica qui per ridimensionare l'hero */
}

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;
  }
}

/* Ponte invisibile che copre il gap tra trigger e menu
   (evita la scomparsa del dropdown durante il passaggio del mouse) */
.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,
.prose-block p {
  margin-top: 1rem;
  line-height: 1.75;
  color: #3d4f52;
}

.prose-ish p:first-child,
.prose-block p:first-child {
  margin-top: 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ----------------------------------------------------------
   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 IMAGE
   Modifica solo --hero-img-w in :root per ridimensionare
   ---------------------------------------------------------- */
@media (min-width: 768px) {
  .hero-img-wrap {
    display: block;
    text-align: left;
  }

  .hero-img {
    display: inline-block;
    width: var(--hero-img-w) !important;
    max-width: 900px;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 767px) {
  .hero-img-wrap {
    display: block;
  }

  .hero-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  }
}

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

/* ----------------------------------------------------------
   9. WIDGET TAGGBOX (recensioni)
   ---------------------------------------------------------- */
.taggbox {
  width: 100%;
  height: 100%;
  overflow: auto;
}

/* ----------------------------------------------------------
   10. 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;
}

/* ----------------------------------------------------------
   11. HERO MEDIA (immagini hero controllabili con classi)
   ---------------------------------------------------------- */
.hero-media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-media--skyline {
  max-width: 470px;
  border-radius: 1.25rem;
}

@media (min-width: 768px) {
  .hero-media--skyline {
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .hero-media--skyline {
    max-width: 100%;
  }
}

/* ----------------------------------------------------------
   12. HERO CTA BOX
   ---------------------------------------------------------- */
.hero-cta-box {
  width: 100%;
  max-width: 460px;
}

.hero-cta-box__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 2rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(14, 103, 129, 0.10);
}

.hero-cta-box__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgb(89, 96, 99);
  margin: 0 0 1.5rem 0;
}

.hero-cta-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background-color: rgb(30, 58, 136);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 24px rgba(30, 58, 136, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cta-box__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(30, 58, 136, 0.26);
}

@media (max-width: 767px) {
  .hero-cta-box {
    max-width: 100%;
  }

  .hero-cta-box__inner {
    min-height: auto;
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .hero-cta-box__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-cta-box__button {
    min-height: 56px;
  }
}

/* ----------------------------------------------------------
   13. HERO MOBILE SWAP (ordine elementi su mobile)
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .hero-mobile-swap {
    display: flex;
    flex-direction: column;
  }

  .hero-mobile-copy {
    order: 1;
  }

  .hero-mobile-cta {
    order: 2;
  }

  .hero-mobile-skyline {
    order: 3;
  }
}

/* ----------------------------------------------------------
   14. FOTO CHI SONO
   ---------------------------------------------------------- */
.seo-about-photo {
  display: block;
  width: 50%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.5rem;
  padding-top: 20px;
}

/* ----------------------------------------------------------
   15. IMMAGINI SEZIONE COME LAVORO
   ---------------------------------------------------------- */
.img-come-lavoro {
  width: 300px;
  max-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1),
              0 4px 6px -4px rgba(0, 0, 0, .1);
  background: #fff;
}

.img-come-lavoro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ----------------------------------------------------------
   16. section consapevolezza
   ---------------------------------------------------------- */

.blog-awareness-img {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  display: block;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .blog-awareness-img {
    max-width: 100%;
  }
}

.bg-awareness {
  background-color: rgba(199, 210, 240, .2);
  padding-bottom: 4rem;
}