/*-----------------------------------------------------------------------------------
    IAS - Override del tema Techwix
    Caricato dopo style.css: ritocchi estetici e allineamenti, senza toccare il tema.
-----------------------------------------------------------------------------------*/

:root {
  --ias-blue: #086ad8;
  --ias-navy: #010f31;
  --ias-text: #3f414d;
  --ias-radius: 12px;
  --ias-shadow: 0 6px 24px rgba(1, 15, 49, 0.07);
  --ias-shadow-hover: 0 14px 36px rgba(1, 15, 49, 0.13);
  --ias-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/*-- Font --
  Segoe UI (font del manuale Sigma Cotie) e' proprietario Microsoft e non puo' essere
  pubblicato come webfont: in style.css e' impostato come primo font di sistema.
  Windows mostra Segoe UI, macOS/iOS San Francisco, Android Roboto.
--*/

/*-- Base --*/
html {
  scroll-behavior: smooth;
}

body {
  color: var(--ias-text);
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(8, 106, 216, 0.18);
}

a,
.btn {
  transition: all 0.3s var(--ias-ease);
}

.btn {
  border-radius: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(8, 106, 216, 0.25);
}

.section-title .title {
  letter-spacing: -0.01em;
}

.section-title .sub-title {
  letter-spacing: 0.12em;
}

/*-- Header: vetro smerigliato quando sticky --*/
.header-section.sticky {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(1, 15, 49, 0.06), 0 8px 24px rgba(1, 15, 49, 0.06);
}

/*-- Card: angoli, ombre e hover uniformi --*/
.choose-us-item-02,
.service-item,
.single-blog .blog-image,
.contact-info-item,
.single-team {
  border-radius: var(--ias-radius);
}

.choose-us-item-02 {
  box-shadow: var(--ias-shadow);
  transition: transform 0.35s var(--ias-ease), box-shadow 0.35s var(--ias-ease);
}

.choose-us-item-02:hover {
  transform: translateY(-4px);
  box-shadow: var(--ias-shadow-hover);
}

/*-- Card "choose-us" (AFM, HFP, ...): altezza dal contenuto, pari altezza per riga --*/
.choose-us-item-02 {
  height: auto;
}

[class*="col-"]:has(> .choose-us-item-02) {
  display: flex;
}

[class*="col-"] > .choose-us-item-02 {
  flex: 1;
}

/* Il tema limitava il testo a 190px (senza nasconderlo): con l'altezza libera sborderebbe */
.choose-us-item-02 div.choose-us-content {
  max-height: none;
}

/*-- Partner (Chi siamo): griglia fluida, nessuna dimensione fissa --
  Colonne automatiche (min 240px). Ogni card occupa 3 righe della griglia (logo, titolo,
  elenco) con subgrid: i titoli e gli elenchi di card affiancate partono alla stessa quota
  qualunque sia la lunghezza dei testi.
--*/
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  margin-top: 30px;
}

.partners-grid .choose-us-item-02 {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  margin-top: 0;
  padding: 32px 28px 28px;
}

.partners-grid .choose-us-content.customers {
  display: contents;
}

.partners-grid .choose-us-img.customers {
  height: auto;
  aspect-ratio: 16 / 7;
  margin-bottom: 20px;
}

.partners-grid .choose-us-img.customers img {
  max-height: 100% !important;
  max-width: 80%;
  object-fit: contain;
}

.partners-grid .choose-us-content .title {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(1, 15, 49, 0.08);
}

.partners-grid .choose-us-content .title br {
  display: none; /* a capo manuali nei titoli: decide la larghezza della card */
}

.partners-grid .choose-us-content ul {
  margin: 0;
  max-height: none;
  padding-left: 18px;
  list-style: none;
}

.partners-grid .choose-us-content li {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.partners-grid .choose-us-content li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ias-blue);
}

/*-- Partner (Home): nastro continuo (logica in main.js) --*/
.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-track {
  display: flex;
  width: max-content;
}

.partners-track.is-running {
  animation: ias-marquee var(--marquee-duration, 40s) linear infinite;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

/* Slot a larghezza fissa: niente gap, così -50% corrisponde esattamente a un set */
.partners-track .partner {
  flex: 0 0 300px;
  height: 130px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-track .partner img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}

@keyframes ias-marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .partners-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
  }
}

/*-- Home: tabelle "La nostra strategia per il futuro" --*/
.service-wrap-03 .table {
  margin-bottom: 48px;
  border-collapse: separate;
  border-spacing: 0;
}

@media (min-width: 992px) {
  .service-wrap-03 .table {
    table-layout: fixed; /* le tabelle impilate condividono le stesse colonne */
  }
}

.service-wrap-03 .table > :not(caption) > * > * {
  padding: 18px 16px;
  vertical-align: top;
  border-bottom-color: rgba(1, 15, 49, 0.08);
}

.service-wrap-03 .table th:first-child {
  width: 17%;
}

.service-wrap-03 .table thead th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ias-blue);
  border-bottom: 2px solid var(--ias-blue);
}

.service-wrap-03 .table tbody th {
  color: #0e0e0e;
  font-weight: 700;
}

.service-wrap-03 .table td {
  line-height: 1.7;
}

/* Etichette "Capacità di ..." come badge invece che testo colorato */
.service-wrap-03 [data-i18n="service.execution"],
.service-wrap-03 [data-i18n="service.vision"] {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.service-wrap-03 [data-i18n="service.execution"] {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.14);
}

.service-wrap-03 [data-i18n="service.vision"] {
  color: #166534 !important;
  background: rgba(34, 197, 94, 0.14);
}

.techwix-service-section-03 .service-wrap-03 .table thead th {
  color: #8cc8ff;
  border-bottom-color: rgba(140, 200, 255, 0.6);
}

.techwix-service-section-03 .service-wrap-03 .table tbody th {
  color: #ffffff;
}

.techwix-service-section-03 .service-wrap-03 .table > :not(caption) > * > * {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/*-- Home: card news allineate (immagine a proporzione fissa, card di pari altezza) --*/
.techwix-blog-wrap .row > [class*="col-"] {
  display: flex;
}

.single-blog.home {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.single-blog.home .blog-image a {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
}

.single-blog.home .blog-image a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-blog.home .blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  filter: none;
  box-shadow: var(--ias-shadow);
}

.single-blog.home .blog-content .blog-btn {
  margin-top: auto;
  padding-top: 15px;
}

.single-blog.home .blog-content .title {
  font-size: 20px;
  line-height: 28px;
  min-height: 84px; /* 3 righe: le anteprime partono tutte alla stessa quota */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.single-blog.home .blog-content .title a {
  display: inline; /* inline-block impedirebbe il line-clamp */
}

.single-blog .blog-image .top-meta .date {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(1, 15, 49, 0.25);
}

/*-- Footer --*/
.footer-section .footer-widget-title {
  margin-top: 0;
}

.footer-section .footer-social a,
.footer-section .social a {
  transition: transform 0.3s var(--ias-ease);
}

.footer-section .footer-social a:hover,
.footer-section .social a:hover {
  transform: translateY(-2px);
}

/*-- Accessibilità: focus visibile da tastiera --*/
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ias-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/*-- Home: anteprima testo nelle card news --*/
.single-blog.home .blog-content .text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #5b5e6b;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.single-blog.home .blog-content .text:empty {
  display: none;
}

/*-- Home: hero --*/
/* Foto con lento zoom (Ken Burns) + velatura navy per dare profondità e contrasto al testo */
.techwix-hero-section-03::before,
.techwix-hero-section-03::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.techwix-hero-section-03::before {
  background: inherit;
  z-index: -3;
  transform-origin: 70% 50%;
  animation: ias-kenburns 24s ease-in-out infinite alternate;
}

.techwix-hero-section-03::after {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 15, 49, 0.78) 0%, rgba(1, 15, 49, 0.45) 45%, rgba(1, 15, 49, 0.05) 75%),
    linear-gradient(0deg, rgba(1, 15, 49, 0.55) 0%, transparent 35%);
}

@keyframes ias-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Forme decorative del tema un po' più discrete */
.techwix-hero-section-03 .shape-1,
.techwix-hero-section-03 .shape-3 {
  opacity: 0.85;
}

.techwix-hero-section-03 .hero-content .sub-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.techwix-hero-section-03 .hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43baff;
  box-shadow: 0 0 0 0 rgba(67, 186, 255, 0.7);
  animation: ias-pulse 2.2s ease-out infinite;
}

@keyframes ias-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 186, 255, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(67, 186, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 186, 255, 0); }
}

.techwix-hero-section-03 .hero-content .title {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 22px;
  text-shadow: 0 2px 24px rgba(1, 15, 49, 0.35);
}

.techwix-hero-section-03 .hero-content .title .accent {
  background: linear-gradient(95deg, #6fd0ff 0%, #43baff 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.techwix-hero-section-03 .hero-content p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

.techwix-hero-section-03 .hero-content .hero-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.techwix-hero-section-03 .hero-content .hero-btn .btn {
  margin-top: 0;
  padding: 0 40px;
}

.techwix-hero-section-03 .hero-content .hero-btn .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
  line-height: 58px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.techwix-hero-section-03 .hero-content .hero-btn .btn-ghost::before,
.techwix-hero-section-03 .hero-content .hero-btn .btn-ghost::after {
  display: none;
}

.techwix-hero-section-03 .hero-content .hero-btn .btn-ghost:hover {
  background: #ffffff;
  color: var(--ias-navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Loghi HFP / AFM: leggera fluttuazione sfalsata */
.techwix-hero-section-03 .home-sw-container:first-child .home-sw {
  animation: ias-float 6s ease-in-out infinite;
}

.techwix-hero-section-03 .home-sw-container:last-child .home-sw {
  animation: ias-float 6s ease-in-out -3s infinite;
}

@keyframes ias-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* Invito a scorrere */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  justify-content: center;
  z-index: 2;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: #ffffff;
  animation: ias-scroll 1.8s ease-in-out infinite;
}

.hero-scroll:hover {
  border-color: #ffffff;
}

@keyframes ias-scroll {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .techwix-hero-section-03::before,
  .techwix-hero-section-03 .hero-dot,
  .techwix-hero-section-03 .home-sw,
  .hero-scroll span {
    animation: none !important;
  }
}

/*-- Pagina IAS --*/
.ias-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, #43baff 0%, #7141b1 100%);
  box-shadow: 0 10px 22px rgba(67, 120, 220, 0.3);
}

.ias-lead {
  font-size: 20px;
  line-height: 1.65;
  color: #0e0e0e;
}

/* 1. Storia: titolo e citazione restano visibili mentre si legge */
.ias-story-aside {
  position: sticky;
  top: 120px;
  padding-right: 30px;
}

.ias-quote {
  position: relative;
  margin: 36px 0 0;
  padding: 30px 28px 28px;
  border-radius: var(--ias-radius);
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #43baff, #7141b1) border-box;
  border: 2px solid transparent;
  box-shadow: var(--ias-shadow);
}

.ias-quote i {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, #43baff, #7141b1);
}

.ias-quote p {
  font-size: 17px;
  line-height: 1.65;
  font-style: italic;
  color: #2a2c38;
}

.ias-story-body .ias-lead {
  padding-left: 22px;
  border-left: 3px solid var(--ias-blue);
  margin-bottom: 28px;
}

.ias-story-body .text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 991px) {
  .ias-story-aside {
    position: static;
    padding-right: 0;
    margin-bottom: 40px;
  }
}

/* 2. Fascia chiara: Difesa + applicativi */
.ias-band-light {
  background-color: #f6f8fc;
  background-size: cover;
  background-position: center;
}

.ias-band-intro {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

.ias-band-intro p {
  font-size: 17px;
  line-height: 1.7;
}

.ias-band-intro .ias-band-intro-strong {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
  color: #0e0e0e;
}

.ias-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}

.ias-app-card {
  padding: 30px 26px;
  border-radius: var(--ias-radius);
  background: #ffffff;
  box-shadow: var(--ias-shadow);
  transition: transform 0.35s var(--ias-ease), box-shadow 0.35s var(--ias-ease);
}

.ias-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ias-shadow-hover);
}

.ias-app-card p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
}

.ias-app-card p b {
  font-size: 16px;
  color: #0e0e0e;
}

/* 3. Fascia scura: moduli AFM */
.ias-band-dark {
  background-color: var(--ias-navy);
  background-size: cover;
  background-position: center;
}

.ias-band-dark-intro {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.ias-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ias-module {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px;
  border-radius: var(--ias-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.3s var(--ias-ease), border-color 0.3s var(--ias-ease);
}

.ias-module:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(140, 200, 255, 0.5);
}

.ias-module i {
  font-size: 22px;
  color: #8cc8ff;
}

/* 4. Evoluzione */
.ias-outlook-lead {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.ias-outlook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}

.ias-outlook-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 32px 30px;
  border-radius: var(--ias-radius);
  background: #f6f8fc;
  border: 1px solid rgba(1, 15, 49, 0.06);
}

.ias-outlook-card p {
  font-size: 15px;
  line-height: 1.7;
}

/*-- AFM: carosello schermate --*/
.techwix-case-study-section-02:has(.case-study-active) {
  padding-top: 80px;
  padding-bottom: 70px;
}

.case-study-active .swiper-slide {
  opacity: 0.4;
  transform: scale(0.9);
  transition: opacity 0.5s var(--ias-ease), transform 0.5s var(--ias-ease);
}

.case-study-active .swiper-slide-active {
  opacity: 1;
  transform: none;
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-img {
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-img img {
  display: block;
  width: 100%;
  height: auto; /* il tema le fissava a 270px, tagliandole */
  aspect-ratio: 2880 / 1510;
  object-fit: cover;
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-img a::before {
  background: linear-gradient(20deg, rgba(1, 15, 49, 0.85) 0%, rgba(1, 15, 49, 0.25) 40%, transparent 65%);
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-content {
  left: 32px;
  bottom: 28px;
  max-width: none;
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-content .sub-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8cc8ff;
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-content .title {
  font-size: 28px;
  line-height: 1.2;
  color: #ffffff;
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-content .title span {
  background: none;
  padding: 0;
  margin: 0;
}

.techwix-case-study-section-02 .single-case-study-02 .case-study-content .title br {
  display: none;
}

.techwix-case-study-section-02 .single-case-study-02:hover .case-study-content .title {
  color: #ffffff;
}

.case-study-content-wrap .swiper-pagination {
  position: static;
  margin-top: 36px;
}

.case-study-content-wrap .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.case-study-content-wrap .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: #43baff;
}

/* Frecce: vetro smerigliato, centrate sulla slide */
.case-study-content-wrap .arrow-container {
  top: calc(50% - 50px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  justify-content: center;
  padding: 0;
}

.case-study-content-wrap .arrow-container:hover {
  background: rgba(255, 255, 255, 0.25);
  filter: none;
}

.case-study-content-wrap .arrow {
  filter: none;
}

.case-study-content-wrap .arrow.right {
  margin-left: -4px;
}

.case-study-content-wrap .arrow.left {
  margin-right: -4px;
}

/*-- AFM: contatori leggibili sopra la foto --*/
.techwix-counter-section-04 .counter-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--ias-radius);
}

.techwix-counter-section-04 .counter-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 15, 49, 0.55) 0%, rgba(1, 15, 49, 0.35) 100%);
}

/*-- Sottotitoli leggibili nelle sezioni scure (es. HFP > LHD Instructors) --*/
.section-title .sub-title:has(+ .title.white) {
  color: #8cc8ff;
  filter: none !important;
}

/*-- Pagina Qualità --*/
/* Documenti: selettore a pillola + visualizzatore PDF in card */
.ias-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #eef2f8;
}

.ias-tab {
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  color: #4c4d56;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s var(--ias-ease), color 0.3s var(--ias-ease), box-shadow 0.3s var(--ias-ease);
}

.ias-tab:hover {
  color: var(--ias-blue);
}

.ias-tab[data-active="true"] {
  background: #ffffff;
  color: var(--ias-blue);
  box-shadow: 0 4px 14px rgba(1, 15, 49, 0.1);
}

.ias-doc-viewer {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--ias-shadow-hover);
  border: 1px solid rgba(1, 15, 49, 0.06);
}

.ias-doc-track {
  display: flex;
  width: 200%;
  transition: transform 0.5s var(--ias-ease);
}

.ias-doc {
  width: 50%;
}

.ias-doc-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(1, 15, 49, 0.06);
}

.ias-doc-info {
  flex: 1;
}

.ias-doc-desc {
  font-size: 17px;
  font-weight: 600;
  color: #0e0e0e;
}

.ias-doc-rev {
  margin-top: 2px;
  font-size: 13px;
  color: #8a8d99;
}

.ias-doc-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(8, 106, 216, 0.3);
  color: var(--ias-blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ias-doc-open:hover {
  background: var(--ias-blue);
  border-color: var(--ias-blue);
  color: #ffffff;
}

.ias-doc iframe {
  display: block;
  width: 100%;
  height: min(75vh, 820px);
  border: 0;
  background: #f1f3f6;
}

/* Grafici in card */
.ias-chart-card {
  padding: 28px;
  border-radius: var(--ias-radius);
  background: #ffffff;
  box-shadow: var(--ias-shadow);
}

.ias-chart-main {
  margin-bottom: 24px;
}

.ias-phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.ias-phase-grid canvas {
  max-height: 300px;
}

.ias-phase-title {
  margin-bottom: 16px;
  font-size: 18px;
  text-align: center;
}

/* EPM: testo e schermata affiancati, alternati */
.ias-epm {
  display: grid;
  gap: 60px;
}

.ias-epm-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}

.ias-epm-row.is-reversed .ias-shot {
  order: -1;
}

.ias-epm-row .text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.ias-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(1, 15, 49, 0.08);
  box-shadow: var(--ias-shadow-hover);
  cursor: zoom-in;
}

.ias-shot img {
  display: block;
  width: 100%;
  transition: transform 0.6s var(--ias-ease);
}

.ias-shot:hover img {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .ias-epm-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ias-epm-row.is-reversed .ias-shot {
    order: 0;
  }
}

/* Scrum: diagramma su card chiara, quattro schede su vetro */
.ias-scrum-diagram {
  margin: 0 auto 40px;
  max-width: 960px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ias-scrum-diagram img {
  display: block;
  width: 100%;
}

.ias-scrum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.ias-scrum-card {
  padding: 28px 24px;
  border-radius: var(--ias-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.82);
}

.ias-scrum-card h3 {
  margin: 18px 0 14px;
  font-size: 19px;
  color: #ffffff;
}

.ias-scrum-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ias-scrum-card li,
.ias-scrum-card p {
  font-size: 14px;
  line-height: 1.6;
}

.ias-scrum-card li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ias-scrum-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ias-scrum-card li b {
  color: #8cc8ff;
}

/* Qualità: percorso ISO/IEC 27001 */
.ias-iso {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 50px;
  padding: 34px 36px;
  border-radius: var(--ias-radius);
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, #43baff, #7141b1) border-box;
  border: 2px solid transparent;
  box-shadow: var(--ias-shadow);
}

.ias-iso .ias-icon {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: 26px;
}

.ias-iso-body .sub-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ias-blue);
}

.ias-iso-title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
}

.ias-iso-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.ias-iso-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 18px 22px;
  border-radius: var(--ias-radius);
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #43baff 0%, #7141b1 100%);
}

.ias-iso-target span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.ias-iso-target strong {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
}

@media (max-width: 767px) {
  .ias-iso {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 22px;
  }

  .ias-iso-target {
    flex-direction: row;
    gap: 12px;
    justify-self: start;
    padding: 12px 20px;
  }

  .ias-iso-target strong {
    font-size: 26px;
  }
}

.ias-band-light .section-title,
.ias-docs + .ias-band-light .section-title {
  margin-bottom: 40px;
}

.ias-band-dark .section-title {
  margin-bottom: 24px;
}

/*-- News --*/
.ias-back {
  margin-bottom: 14px;
}

.blog-details-post .single-blog-post.single-blog .blog-content h1.title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ias-translated-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2f8;
  color: #5b5e6b;
  font-size: 13px;
}

.ias-translated-note[hidden],
.ias-not-found[hidden] {
  display: none;
}

.ias-article-body {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ias-text);
}

.ias-article-body > * + * {
  margin-top: 1.1em;
}

.ias-article-body h2,
.ias-article-body h3,
.ias-article-body h4 {
  margin-top: 1.6em;
  line-height: 1.3;
}

.ias-article-body ul,
.ias-article-body ol {
  padding-left: 1.4em;
  list-style: revert;
}

.ias-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.ias-not-found {
  padding: 60px 0;
  font-size: 20px;
  text-align: center;
}

/* Card senza copertina: segnaposto con il gradiente del sito */
.blog-image.no-cover,
.post-thumb.no-cover {
  background: linear-gradient(135deg, #43baff 0%, #7141b1 100%);
}

.single-blog .blog-image.no-cover a {
  display: block;
  aspect-ratio: 16 / 10;
}

/* Copertine dell'elenco: proporzione fissa invece dell'altezza fissa del tema */
.blog-post-wrap .single-blog .blog-image a {
  height: auto !important;
}

.blog-post-wrap .single-blog .blog-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Miniature "Ultime notizie": immagine centrata e ritagliata, senza trucchi di posizione */
.recent-posts .post-thumb img {
  position: static !important;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.recent-posts .post-meta {
  white-space: nowrap;
}

/* Paginazione */
.js-pagination .pagination {
  gap: 8px;
  margin-top: 40px;
}

.js-pagination .pagination li a,
.js-pagination .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.js-pagination .pagination li a {
  background: #ffffff;
  color: #0e0e0e;
  border: 1px solid rgba(1, 15, 49, 0.1);
  box-shadow: var(--ias-shadow);
}

.js-pagination .pagination li a:hover {
  border-color: var(--ias-blue);
  color: var(--ias-blue);
}

.js-pagination .pagination li a.active {
  background: linear-gradient(135deg, #43baff 0%, #086ad8 100%);
  border-color: transparent;
  color: #ffffff;
}

.blog-details-post .single-blog-post.single-blog .blog-content .ias-article-body p {
  font-size: 17px;
  line-height: 1.8;
  margin-top: 1.1em;
}

.blog-details-post .single-blog-post.single-blog .blog-content .ias-article-body > :first-child {
  margin-top: 0;
}

/*-- Card del team (Chi siamo): foto senza deformazioni, testo entro i bordi --*/
.single-team .team-img a img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.single-team .team-content {
  right: 24px;
}
