/* Stili condivisi della homepage staging Vica System. */
.vica-home .vica-home-shell,
.vica-shell {
  margin-left:auto;
  margin-right:auto;
  max-width:1160px;
}

.vica-home .vica-home-area-card,
.vica-area-card {
  display:flex;
  flex-direction:column;
  height:100%;
  border:1px solid #e1e9ef;
  border-radius:8px;
  background-color:#ffffff;
  overflow:hidden;
  box-shadow:0 5px 22px rgba(0,79,124,.035);
}

.vica-home .vica-home-area-body,
.vica-area-body {
  position:relative;
  padding-top:24px;
  padding-right:24px;
  padding-bottom:24px;
  padding-left:24px;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}

.vica-home .vica-home-area-icon,
.vica-elenco-con-icone {
  position:absolute;
  top:-30px;
  left:22px;
  width:68px;
  height:68px;
  border-radius:50%;
  background-color:#e4f3fc;
  color:#007dce;
  border:5px solid #ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.vica-elenco-con-icone {
  position: static;
  flex: 0 0 68px;
  box-sizing: border-box;
}

.vica-elenco-con-icone .gb-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 0;
}

.vica-home .vica-home-area-title{
  padding-left:78px;
  min-height:58px;
  color:var(--global-color-blue-vica, #052b46);
}

.vica-home .vica-home-area-description{
  font-size:16px;
  line-height:1.65;
  color:#525b65;
  margin-top:14px;
  margin-bottom:20px;
}

.vica-home .vica-home-area-link{
  margin-top:auto;
  font-size:16px;
  font-weight:600;
  color:#007dce;
}

.vica-home .vica-home-kicker{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.8px;
  color:#469ce1;
  margin-bottom:10px;
}
.vica-home .vica-home-kicker p{
  margin:0;
}

.vica-home .vica-home-step{
  position:relative;
  text-align:center;
}

.vica-home .vica-home-step-arrow{
  position:absolute;
  right:-28px;
  top:64px;
}
@media(max-width:600px){.vica-home .vica-home-step-arrow{
  display:none;
}
}

.vica-home .vica-home-step-art{
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
}

.vica-home .vica-home-step-description{
  color:#505862;
  max-width:205px;
  margin-left:auto;
  margin-right:auto;
}
.vica-home .vica-home-step-description p{
  margin:0;
}

.vica-home .vica-home-benefit-icon{
  width:66px;
  height:66px;
  background-color:#e4f3fc;
  color:#0087d9;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}

.vica-home .vica-home-benefit-description{
  color:#505862;
}
.vica-home .vica-home-benefit-description p{
  margin:0;
}


.vica-home .vica-home-kicker{
  margin-top:0;
}

.vica-home .vica-home-kicker-light{
  color:#81d2f4;
}


/* Classi condivise: caricare sul frontend e nell’editor. */
.vica-home {
  color: #505862;
}

.vica-home *, .vica-home *::before, .vica-home *::after {
  box-sizing: border-box;
}

.vica-home .gb-text {
  overflow-wrap: break-word;
}

.vica-home .vica-home-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.vica-home .vica-home-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

.vica-home .vica-home-button:hover {
  filter: brightness(.94);
}

.vica-home a:focus-visible {
  outline: 3px solid #ef7d00;
  outline-offset: 4px;
}

.vica-home .vica-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 24px;
  min-height: 33.333333vw;
  background: #cce7f7;
}

.vica-home .vica-home-hero-image {
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.vica-home .vica-home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #cce7f7 22%, rgba(204,231,247,0) 48%);
}

/* Limita e centra l’intera sezione Hero. */
.vica-home .vica-home-hero {
  position: relative;
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* Mantiene l’immagine entro il contenitore Hero. */
.vica-home .vica-home-hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Desktop: l’altezza smette di crescere insieme alla larghezza. */
.vica-home .vica-home-hero {
  min-height: min(33.333333vw, 386.666667px);
}

@media (min-width: 1161px) {
  .vica-home .vica-home-hero-image {
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 96px,
      #000 calc(100% - 64px),
      transparent 100%
    );
  }
}

/* Tablet e mobile: immagine di fianco allo slogan. */
@media (max-width: 1024px) {

  /* Una sola colonna, senza altezza o spazio riservato. */
  .vica-home .vica-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
    align-items: start;
    align-content: start;

    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 28px 20px;
  }

  /* Rende ordinabili insieme immagine e contenuti. */
  .vica-home .vica-home-hero > .vica-home-shell {
    display: contents;
  }

  .vica-home .vica-home-hero > .vica-home-shell > * {
    grid-column: 1;
    grid-row: auto;
    order: 0;
    min-width: 0;
    margin: 0;
  }

  /* 1. Slogan */
  .vica-home .vica-home-hero .gb-element-a6200001 {
    grid-row: 1;
  }

  .vica-home .vica-home-hero .gb-element-a6200001 .gb-text {
/*    font-size: clamp(30px, 6vw, 42px);
    line-height: 1.1;
    margin: 0;
*/
    font-size: clamp(13px, 4.2vw, 42px);
    white-space: nowrap;
  }

  .vica-home .vica-home-hero .gb-element-a6200001 .gb-text br {
    display: none;
  }

  /* 2. Immagine intera a tutta larghezza disponibile */
  .vica-home .vica-home-hero-image {
    grid-column: 1;
    grid-row: 2;
    order: 0;

    position: static;
    inset: auto;
    z-index: auto;
    transform: none;

    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;

    object-fit: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* 3. Paragrafo H1 */
  .vica-home .vica-home-hero .vica-home-hero-subtitle {
    grid-row: 3;
    max-width: none;
  }

  .vica-home .vica-home-hero .vica-home-hero-subtitle .gb-text {
    margin: 0;
  }

  /* 4. Pulsante */
  .vica-home .vica-home-hero .vica-home-buttons {
    grid-row: 4;
  }

  /* Elimina il gradiente sovrapposto originale. */
  .vica-home .vica-home-hero::after {
    display: none;
  }
}

@media (max-width: 1024px) {

  /* Ritaglia circa il 25% a sinistra dell’immagine 3:1. */
  .vica-home .vica-home-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 8 / 4;
    object-fit: cover;
    object-position: right center;
  }

  /* L’Hero deve terminare subito dopo i contenuti. */
  .vica-home .vica-home-hero {
    height: auto !important;
    min-height: 0 !important;
    min-block-size: 0 !important;
    padding-bottom: 24px !important;

    grid-template-rows: repeat(5, max-content);
    align-content: start;
  }

  .vica-home .vica-home-hero > .vica-home-shell > :last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 1024px) {
  .vica-home .vica-home-hero-image {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 30%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 30%
    );
  }
}

@media (max-width: 1024px) {
  .vica-home .vica-home-hero {
  min-height: 0;
  padding-bottom: calc(53.333333vw + 24px);
}

  .vica-home .vica-home-hero-image {
  width: 160%;
}

  .vica-home .vica-home-hero::after {
  top: auto;
  height: 53.333333vw;
  background: linear-gradient(to bottom, #cce7f7, rgba(204,231,247,0) 28%);
}

  .vica-home .vica-home-hero-subtitle {
  max-width: 600px;
}

}

@media (max-width: 600px) {
  .vica-home .vica-home-hero {
  padding-top: 32px;
  padding-left: 20px;
  padding-right: 20px;
}

}

