/* =============================================
   HUB.CSS — Stili condivisi per le pagine hub
   delle macro aree (Cybersecurity, Assistenza IT, Marketing)
   ============================================= */

/* -----------------------------------------------
   HERO AREA
   Header specifico di ogni macro area con
   breadcrumb, titolo, descrizione e CTA.
----------------------------------------------- */
.hub-hero {
  padding-top: calc(var(--navbar-h) + var(--sp-xl));
  padding-bottom: var(--sp-2xl);
  position: relative;
  overflow: hidden;
}

/* Cerchio decorativo in alto a destra */
.hub-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--area-color-pale, var(--c-orange-pale)) 0%, transparent 65%);
  pointer-events: none;
}

.hub-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

/* Breadcrumb navigazione */
.hub-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  color: var(--c-gray-light);
  margin-bottom: var(--sp-md);
}

.hub-hero__breadcrumb a {
  color: var(--c-gray-light);
  transition: color var(--tr);
}
.hub-hero__breadcrumb a:hover { color: var(--c-orange); }

.hub-hero__breadcrumb .sep { font-size: 10px; }

/* Titolo area */
.hub-hero__title {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  margin-bottom: var(--sp-md);
}

.hub-hero__desc {
  font-size: var(--t-md);
  color: var(--c-gray);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-lg);
}

.hub-hero__cta {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* Card dati numerici lato destro hero */
.hub-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

.hub-stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  position: relative;
  overflow: hidden;
  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    border-color .35s ease;
  will-change: transform;
}

.hub-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .hub-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(7,25,45,.08);
    border-color: rgba(240,90,26,.18);
  }
}

.hub-stat-card__value {
  font-family: var(--f-heading);
  font-size: var(--t-3xl);
  font-weight: 800;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: 6px;
}

.hub-stat-card__value span {
  font-size: var(--t-2xl);
  color: var(--c-orange);
}

.hub-stat-card__label {
  font-size: var(--t-sm);
  color: var(--c-gray);
  line-height: 1.4;
}

/* -----------------------------------------------
   GRIGLIA SERVIZI
   Card cliccabili che portano alla pagina
   dedicata di ogni servizio.
----------------------------------------------- */
.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

/* Card servizio */
.servizio-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    background .35s ease;
  will-change: transform;
}

/* Shimmer su hover */
.servizio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .servizio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(7,25,45,.10);
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
    border-color: rgba(240,90,26,.24);
  }

  .servizio-card:hover .servizio-card__icon {
    background: var(--c-orange);
    filter: drop-shadow(0 4px 10px rgba(240,90,26,.18));
  }

  .servizio-card:hover .servizio-card__cta { gap: 10px; }
}

.servizio-card__icon {
  width: 54px;
  height: 54px;
  background: var(--c-orange-pale);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--sp-xs);
  transition: background .35s ease, transform .35s cubic-bezier(.22,1,.36,1), filter .35s ease;
}

.servizio-card__title {
  font-family: var(--f-heading);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.2;
}

.servizio-card__desc {
  font-size: var(--t-base);
  color: var(--c-gray);
  line-height: 1.6;
  flex-grow: 1;
}

/* Lista punti chiave dentro la card */
.servizio-card__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: var(--sp-xs);
}

.servizio-card__list li {
  font-size: var(--t-sm);
  color: var(--c-gray);
  padding-left: 16px;
  position: relative;
}
.servizio-card__list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--c-orange);
  font-size: 18px;
  line-height: 1;
  top: -1px;
}

/* Freccia "Scopri →" in fondo alla card */
.servizio-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-orange);
  margin-top: auto;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--c-border);
  transition: gap var(--tr);
}

/* -----------------------------------------------
   SEZIONE "PERCHÉ SCEGLIERCI PER QUEST'AREA"
----------------------------------------------- */
.perche__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  align-items: center;
}

.perche__visual {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
}

/* Mini-card dentro il visual */
.perche-mini {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: var(--sp-md);
}

.perche-mini__icon { font-size: 24px; margin-bottom: 8px; }
.perche-mini__val  {
  font-family: var(--f-heading);
  font-size: var(--t-xl);
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 4px;
}
.perche-mini__label { font-size: var(--t-xs); color: var(--c-gray); }

/* Lista punti testo */
.perche__points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.perche__point {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
}

.perche__point-icon {
  width: 44px;
  height: 44px;
  background: var(--c-orange-pale);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.perche__point-title {
  font-family: var(--f-heading);
  font-size: var(--t-base);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 4px;
}

.perche__point-desc {
  font-size: var(--t-sm);
  color: var(--c-gray);
  line-height: 1.6;
}

/* -----------------------------------------------
   TESTIMONIANZA SINGOLA
----------------------------------------------- */
.testi-single {
  background: var(--c-dark);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-xl);
  align-items: center;
}

.testi-single__quote {
  font-family: var(--f-heading);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.35;
  font-style: italic;
  position: relative;
  padding-left: var(--sp-lg);
}

/* Virgoletta decorativa */
.testi-single__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 60px;
  color: var(--c-orange);
  line-height: 1;
  font-style: normal;
}

.testi-single__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  text-align: center;
  min-width: 160px;
}

.testi-single__avatar {
  width: 64px;
  height: 64px;
  background: var(--c-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-heading);
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--c-white);
}

.testi-single__name { font-weight: 700; color: var(--c-white); font-size: var(--t-base); }
.testi-single__role { font-size: var(--t-sm); color: rgba(255,255,255,0.5); }

/* -----------------------------------------------
   CTA CONTATTO IN FONDO ALLA HUB
----------------------------------------------- */
.hub-cta {
  background: var(--c-orange-pale);
  border: 1px solid rgba(240,90,26,0.15);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  position: relative;
  overflow: hidden;
  transition:
    transform .35s cubic-bezier(.22,1,.36,1),
    box-shadow .35s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    background .35s ease;
}

.hub-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .hub-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(7,25,45,.10);
    border-color: rgba(240,90,26,.24);
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
  }

  .hub-cta:hover::after { transform: translateX(120%); }
}

.hub-cta__text h2 { font-size: var(--t-2xl); margin-bottom: var(--sp-xs); }
.hub-cta__text p  { font-size: var(--t-base); color: var(--c-gray); }

.hub-cta__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

/* -----------------------------------------------
   RESPONSIVE HUB
----------------------------------------------- */
@media (max-width: 1024px) {
  .hub-hero__inner  { grid-template-columns: 1fr; }
  .hub-hero__stats  { grid-template-columns: repeat(2,1fr); }
  .servizi__grid    { grid-template-columns: repeat(2,1fr); }
  .perche__grid     { grid-template-columns: 1fr; }
  .testi-single     { grid-template-columns: 1fr; }
  .hub-cta          { flex-direction: column; text-align: center; }
  .hub-cta__actions { justify-content: center; }
}

@media (max-width: 768px) {
  .servizi__grid  { grid-template-columns: 1fr; }
  .perche__visual { grid-template-columns: 1fr; }
  .hub-hero__stats { grid-template-columns: 1fr 1fr; }
}
