/* =========================================
   HERO SECTION – DESKTOP + RESPONSIVE
========================================= */

/* --- Contenitore a tutta larghezza --- */
.hero {
  display: flex;                  /* serve solo a centrare hero-inner */
  justify-content: center;
padding: 11.94rem clamp(1.25rem, 6vw, 7.5rem) 7.19rem;

  /* 150px top  –  lateral: da 20px (mobile) a 120px (desktop) – 70px bottom */
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.tf-title-page-secondary-hero {
color: var(--Blue-Blue-Extra-Dark, #253271);
}

.tf-subtitle-regular-hero {
  color: var(--Blue-Blue-Extra-Dark, #253271);
}

/* --- Wrapper interno centrato, larghezza limitata --- */
.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;                   /* 20px */
  max-width: 75rem;               /* 1440px */
  width: 100%;
  margin: 0 auto;                 /* centrato orizzontalmente */
  box-sizing: border-box;
}

.hero-subtitle {
margin: 0;
}

/* --- Colonna testo --- */
.hero-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;                  /* 10px */
  text-align: left;
}

.hero-cta {
  padding: 1.25rem 0;             /* 20px top/bottom */
}

/* --- Colonna immagine / placeholder --- */
.hero-image {
  flex: 1 0 0;
  height: 28.125rem;              /* 450px */
  border-radius: 0.625rem;        /* 10px */
}

/* =================================================
   BREAKPOINT DESKTOP MEDIO / TABLET LARGE (≤1024px)
================================================= */
@media (max-width: 1024px) {
  .hero {
    padding: 8rem clamp(1.25rem, 5vw, 2.5rem) 3.75rem;
    /* 112px top, 40px max lateral, 60px bottom */
  }

  .hero-inner {
    flex-direction: column;       /* stack verticale */
    gap: 2rem;                    /* 32px */
  }

  .hero-content {
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .hero-cta {
    margin: 0.625rem;
  }

  .hero-image {
  height: 35rem;  
  }
}

/* =================================================
   TABLET PORTRAIT (≤768px)
================================================= */
@media (max-width: 768px) {
  .hero {
    padding: 7.5rem clamp(1.25rem, 6vw, 2rem) 3rem;
    /* 80px top, 32px max lateral, 48px bottom */
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-content {
    gap: 0.62rem;
  }

  .hero-image {
    height: 30rem;               /* 288px */
  }
}

/* =================================================
   SMARTPHONE (≤480px)
================================================= */
@media (max-width: 480px) {
  .hero {
    padding: 7.5rem 1.25rem 2rem;  /* 80px top, 20px lateral, 32px bottom */
  }

  .hero-inner {
    gap: 1.25rem;
  }

  .hero-content {
    gap: 0.625rem;
  }

  .hero-image {
    height: 25rem;               /* 224px */
  }
  
  .hero-cta .btn-large {
    padding: 0.375rem 0.75rem;   /* 6px 12px */
  }
}

.carrier-info-item.active .carrier-info-icon {
    /* Imposta l'icona per il menu APERTO */
    content: url('https://8647221.fs1.hubspotusercontent-na1.net/hubfs/8647221/Website%202025/Carriere/Chevron%20up.svg');
}

.carrier-info-icon {
    display: block;
    width: 24px;  /* Dimensione desiderata per l'icona */
    height: 24px;
    /* Imposta l'icona di default (menu CHIUSO) */
    content: url('https://8647221.fs1.hubspotusercontent-na1.net/hubfs/8647221/Website%202025/Carriere/Chevron%20down.svg');
}

/* Sezione principale (invariata) */
.carrier-info-section {
    width: 100%;
    background: linear-gradient(87deg, #4D74FE 44.65%, #334DA9 74.43%, #253271 92.72%);
    padding: clamp(6.12rem, 5vw + 3rem, 9.375rem) clamp(1rem, 5vw, 7.5rem);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.carrier-info-intro {
    display: flex;
    flex-direction: column; /* Elementi impilati verticalmente */
    padding: 0 7.5rem 3.125rem 7.5rem;
    max-width: 800px; /* Mantiene una larghezza di riga leggibile */
    width: 100%;
}

.carrier-info-intro h2 {
    margin-bottom: 0.62rem;
  color: #FFFFFF;
  text-align: center;
}

.carrier-info-intro p  {
  color: #FFFFFF;
}

.carrier-info-intro .separator {
    margin: 0;
    margin-bottom: 1.88rem; /* Gap tra separatore e descrizione */
    color: #FFFFFF;
    text-align: center;
}

.carrier-info-container {
    display: flex;
    max-width: 75rem; /* Larghezza massima */
    width: 100%;      /* Occupa tutto lo spazio disponibile */
    padding: clamp(3.125rem, calc(2rem + 3vw), 6.25rem) clamp(2.8125rem, calc(1rem + 5vw), 6.5rem);
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* MODIFICATO: Colonna immagine */
.carrier-info-image-wrapper {
    flex: 1 0 0; /* Occupa metà spazio */
}

.carrier-info-image-wrapper img {
    width: 100%;
    display: block;
    aspect-ratio: 487 / 419; /* Mantiene le proporzioni corrette */
    object-fit: cover;
    border-radius: 20px;
}

/* MODIFICATO: Colonna accordion */
.carrier-info-accordion {
    flex: 1 0 0; /* Occupa l'altra metà */
    color: #253271; /* Colore di base per il testo */
    align-self: stretch; /* Si estende per tutta l'altezza del contenitore */
    display: flex;
    flex-direction: column;
}

/* MODIFICATO: Singolo item dell'accordion */
.carrier-info-item {
    display: flex;
    flex-direction: column;
    padding: 1rem; /* 16px */
    border-bottom: 2px solid #253271;
}
.carrier-info-item:last-child {
    border-bottom: none;
}

.carrier-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}


/* MODIFICATO: Freccia */
.carrier-info-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #4D74FE; /* Colore dalla specifica */
    border-bottom: 2px solid #4D74FE;
    transform: rotate(45deg);
    transition: transform 0.3s ease-in-out;
}

/* Contenuto a scomparsa (logica invariata) */
.carrier-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.carrier-info-item.active .carrier-info-arrow {
    transform: rotate(-135deg);
}

.carrier-info-item.active .carrier-info-content {
    max-height: 200px;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  
  .carrier-info-intro {
padding: 0 0 3.125rem;
    }
  
    .carrier-info-container {
        flex-direction: column; /* Le colonne si impilano */
    }
}

.carrier-info-item:last-child {
border-bottom: 2px solid #253271;
}

/* --- Contenitore Principale --- */
.join-team-section {
    display: flex;
    width: 100%;
    padding: 9.375rem 1.5rem;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.join-team-intro {
    text-align: center;
    color: #FFF;
}


.join-team-intro-subtitle {
padding: 0.62rem 0 1.88rem;
  margin: 0;
}

/* --- Contenitore principale del form --- */
.form-container {
    padding: 1.12rem 2rem 0;
    display: flex;
    justify-content: center;
}

/* Selettore specifico per il form generato */
.form-container form.hs-form-private {
    background: #FFF;
    padding: 2rem;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 40rem; /* 640px */
    box-sizing: border-box;
}

/* --- Contenitore per ogni campo (label + input) --- */
.form-container .hs-form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem; /* 6px */
    margin-bottom: 1.5rem;
}

/* --- Etichette (Nome, Email, etc.) --- */
.form-container .hs-form-field label {
    color: #253271;
    font-family: 'Mulish', sans-serif;
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
}
.form-container .hs-form-field label .hs-form-required {
    color: #db4437; /* Asterisco rosso */
}

/* --- MODIFICATO: Campi di testo e textarea con larghezza al 100% --- */
.form-container .hs-input,
.form-container textarea.hs-input {
    width: 100% !important; /* Forza la larghezza completa del contenitore */
    padding: 0.9375rem 0.75rem !important;
    border-radius: 0.625rem !important;
    border: 1px solid #253271 !important;
    background: #FFF !important;
    box-sizing: border-box;
    font-family: 'Mulish', sans-serif;
}
.form-container textarea.hs-input {
    min-height: 8rem;
}

/* --- Campo Caricamento Curriculum --- */
.form-container .hs_curriculum .input {
    position: relative;
    width: 100%;
    border: 1px solid #253271;
    border-radius: 0.625rem;
    background-color: #fff;
    height: 3.125rem;
}
.form-container .hs_curriculum .input::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('https://8647221.fs1.hubspotusercontent-na1.net/hubfs/8647221/Website%202025/Carriere/Inside%20Icon%20Container.svg');
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-container .hs_curriculum input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- Area di interesse (Radio Buttons) --- */
.form-container .hs_area_interesse .inputs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style-type: none;
    padding: 0;
  margin-top: -0.25rem;
}
.form-container .hs_area_interesse input[type="radio"] {
    display: none !important;
}

.inputs-list .hs-form-radio+.hs-form-radio {
margin-top: 0;
}

.form-container .hs_area_interesse .hs-form-radio-display span {
    display: inline-block !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 6.25rem !important;
    border: 1px solid #253271 !important;
    background: #FFF !important;
    color: #253271 !important;
    cursor: pointer;
text-align: center;
  margin-top: 

/* Body/Body Tiny/Tiny ExtraBold */
font-family: Mulish;
font-size: 0.75rem;
font-style: normal;
font-weight: 800;
line-height: 120%; /* 0.9rem */
}

.form-container .hs_area_interesse input[type="radio"]:checked + span {
border: 1px solid var(--Blue-Blue-Strong, #4D74FE) !important;
background: var(--Neutri-White, #FFF) !important;
color: var(--Blue-Blue-Strong, #4D74FE) !important;
}

/* --- Testo Legale e Privacy --- */
.form-container .legal-consent-container {
    color: #5a6578;
    font-size: 0.75rem;
    line-height: 1.5;
    border-top: 0;
}

.form-container .hs_submit {
    display: flex; /* Mantiene il contenitore flessibile */
    width: 100%;
    margin-top: 2rem;
}

/* --- MODIFICATO: Contenitore del pulsante per allinearlo a destra --- */
.form-container .hs_submit {
  display: flex;
  justify-content: flex-end; /* Allinea gli elementi interni a destra */
}

/* --- MODIFICATO: Stile del pulsante di invio con allineamento forzato --- */
.form-container .hs-submit .hs-button.primary {
    /* Allineamento a destra */
    margin-left: auto !important; /* Spinge il pulsante a destra */
    margin-right: 0 !important;   /* Azzera il margine destro */
    min-width: 0px;
    margin-top: 0px;
    /* Stile del bottone */
    display: flex !important;
    height: 2.25rem !important;
    padding: 0.625rem 1.25rem !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.25rem !important;
    border-radius: 6.25rem !important;
    background: #4D74FE !important;
    border: none !important;
    
    /* Stile testo */
    color: #FFF !important;
    font-family: 'Mulish', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    line-height: 120% !important;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.form-container .hs-submit .hs-button.primary:hover {
border: 1px solid var(--Blue-Blue-Strong, #4D74FE) !important;
background: var(--Neutri-White, #FFF) !important;
  color: var(--Blue-Blue-Strong, #4D74FE) !important;
}

/* --- FORZA LA LARGHEZZA DEI CAMPI E DEI LORO CONTENITORI --- */

/* Forza il contenitore di label+input ad essere a tutta larghezza */
.form-container .hs-form-field {
    width: 100% !important;
    box-sizing: border-box;
}

/* Forza il contenitore dell'input ad essere a tutta larghezza */
.form-container .hs-form-field .input {
    width: 100% !important;
    box-sizing: border-box;
}

/* Forza l'input stesso ad essere a tutta larghezza */
.form-container .hs-input,
.form-container textarea.hs-input {
    width: 100% !important;
    box-sizing: border-box;
}

@media (max-width: 720px) {
  .join-team-section {
padding: 6.25rem 1rem 5,13rem;
   }
  
 .form-container  {
padding: 0;
   }
  
  .form-container form.hs-form-private  {
padding: 0;
   }
  }