:root {
  --bg-panel: #30358B;
  --text-main: #111827;
  --text-muted: #6b7280;
  --radius: 16px;
  --container-w: min(960px, 100% - 20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: #365eff;
  background-image: 
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 20px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 20px),
      linear-gradient(to left, #365eff, #7a55ff);
  min-height: 100vh;
}

.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.small {
    font-size: 0.9rem;
}

.spacer-10 {
    margin-top: 5px;
    margin-bottom: 5px;
    clear: both;
    width: 100%;
    border: none;
}
.spacer-20 {
    margin-top: 10px;
    margin-bottom: 10px;
    clear: both;
    width: 100%;
    border: none;
}

.m-t-5 { margin-top: 5px !important }
.m-t-10 { margin-top: 10px !important }
.m-t-15 { margin-top: 15px !important }
.m-t-20 { margin-top: 20px !important }
.m-t-30 { margin-top: 30px !important }
.m-t-40 { margin-top: 40px !important }
.m-t-50 { margin-top: 50px !important }
.m-t-100 { margin-top: 100px !important }

.m-b-5 { margin-bottom: 5px !important }
.m-b-10 { margin-bottom: 10px !important }
.m-b-15 { margin-bottom: 15px !important }
.m-b-20 { margin-bottom: 20px !important }
.m-b-30 { margin-bottom: 30px !important }
.m-b-40 { margin-bottom: 40px !important }
.m-b-50 { margin-bottom: 50px !important }
.m-b-100 { margin-bottom: 100px !important }

.p-5 { padding: 5px; }
.p-7 { padding: 7px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }

.p-t-7 { padding-top: 7px; }

.p-l-115 { padding-left: 115px !important }

.close::after {
    content: "";
    -ms-transform: translateX(-50%) rotate(-45deg);
    transform: translateX(-50%) rotate(-45deg);
    width: 2px;
    background: #000;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 101;
    height: 100%;
    display: block;
}
.close::before {
    content: "";
    -ms-transform: translateX(-50%) rotate(45deg);
    transform: translateX(-50%) rotate(45deg);
    width: 2px;
    background: #000;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 100;
    height: 100%;
    display: block;
}
.close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.outer-container {
    box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
    background-color: #30358B;
    background-size: 400% 400%;
    max-width: 1200px;
    width: calc(100% - 20px);
    padding: 20px;
    margin: 10px auto;
    border-radius: 18px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    overflow: hidden;
    /* animation: colorChange 20s ease-in-out infinite; */
}

.outer-container > h3 {
    font-family: 'Poppins', sans-serif;
    flex: 1 1 100%;
    margin: 0 0 0px 0;
    text-align: left;
    color: #fff;
    font-size: 1.2rem;
}

.outer-container.error {
    display: block;
    background-color: #F5F7FB;
    margin-top: 80px;
    margin-bottom: 60px;
}
.outer-container.error h1 {
    color: #ff5722;
    font-size: 180px;
    font-weight: 800;
}
.outer-container.error h3 {
    color: #000000;
    font-size: 22px;
    margin-bottom: 30px;
}
.outer-container.error p {
    color: #000000;
    font-size: 18px;
    margin-bottom: 30px;
}

.outer-container.custom-bg {
    background-color: #794355;
}

.errors .outer-container.error {
    display: block;
    background-color: #F05053;
}
.errors .outer-container.alert {
    display: block;
    background-color: #E0C63C;
}
.errors .outer-container.success {
    display: block;
    background-color: #9EEC66;
}

.login .box,
.registration .box,
.recovery-password .box,
.change-password .box {
    max-width: 768px;
    margin: 0 auto;
}

.errors .box {
    max-width: 768px;
    min-height: 60px;
    margin: 0 auto;
}
.errors .content-section {
    padding: 20px;
}
.errors .content-section ul {
    list-style: none;
}
.errors .content-section ul > li {
    font-size: 1.05rem;
}


.control-label {
    width: 15%;
    text-align: right;
}

.h-full {
    width: 100%;
}

.btn.btn-block {
    width: 80%;
}

.btn.btn-info {
    font-family: 'Poppins', sans-serif;
    letter-spacing: .05em;
    font-size: 14px;
    align-self: flex-end;
    background: #2563eb;
    color: white;
    border: 2px solid #5db1ff;
    border: none;
    border-radius: 14px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    text-decoration: none;
}

/* Box singolo con immagine e testo */
.box {
    background: #F5F7FB;
    /* border: 1px solid #d1d1d1; */
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 18px rgba(2, 6, 23, .20);
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    position: relative;
    min-height: 220px;
    min-width: 280px;
    display: flex;
    overflow: hidden;
}

/* Icona a sinistra nel box */
.icon-section {
    background: linear-gradient(#E6EBF3, #F1F4FA);
    width: 50px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 18px;
}

.logo-icon-italy {
    width: 45px;
    height: 45px;
    display: block;
    margin: 0 auto;
}

.logo-icon-car {
    width: 56px;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateY(-10px);
}

.icon-section span {
    font-size: 1.5em;
    color: #007bff;
}

/* Contenuto del box a destra */
.content-section {
    padding: 0px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-section h3 {
    color: #2e2e2e;
    font-size: 1.3em;
    margin-top: 18px;
}

.content-section p {
    z-index: 1;
    font-size: 1em;
    color: #6e6e6e;
    margin-top: -5px;
    margin-bottom: 5px;
}

.content-section .buttons {
    text-align: right;
}

.content-section button {
    font-family: 'Poppins', sans-serif;
    letter-spacing: .05em;
    font-size: 14px;
    align-self: flex-end;
    background: #2563eb;
    color: white;
    /* border: 2px solid #5db1ff; */
    border: none;
    border-radius: 14px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.content-section button:hover {
    background-color: #0d47c4;
    /* border-color: #0a84ff; */
    border-color: #0d47c4;
}

.content-section button.apply-job {
    background: #23a300;
}

.content-section button.apply-job:hover {
    background-color: #0E860C;
    border-color: #0E860C;
}

/* Stile per il box del modulo */
.contact-box,
.content-box {
    background: #F5F7FB;
    border: none;
    /* border: 2px solid #c5d2ff; */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, .20);
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Stile del contenuto interno del modulo */
.contact-content,
.text-content {
    display: flex;
    flex-direction: column;
}

/* Stile per la disposizione degli elementi nel form */
.info-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Stile per il dropdown */
.info-form select,
.info-form input {
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    font-weight: 500;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 250px;
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 0.9em;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.3s ease;
    appearance: auto;
    height: 50px;
}
.info-form input[type=checkbox] {
    height: 25px;
    min-width: 50px;
}

/* Stile per il bordo di focus */
.info-form select:focus,
.info-form input:focus {
    box-shadow: 0 0 0 3px #a8d5ff;
    border-radius: 16px;
}

/* Stile per il bottone di invio */
.info-form button {
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    min-width: 150px;
    border-radius: 14px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    text-align: center;
}

/* Effetto hover per il bottone di invio */
.info-form button:hover {
    background-color: #0d47c4;
    /* border-color: #0a84ff; */
    border-color: #0d47c4;
}

/* Nota per i dati dell'account */
.account-info-note {
    font-family: 'Calibri', sans-serif;
    font-size: 0.9em;
    color: #777777;
    margin-top: 15px;
    text-align: center;
    font-style: italic;
    width: 100%;
}


.pop-up {
    display: flex;
    position: fixed;
    z-index: 400;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6)
}

.inner-pop-up {
    width: 90%;
    max-width: 800px;
    padding: 10px 50px 30px 30px;
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.40);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, -50%);
}
.inner-pop-up.content {
    background: #F5F7FB;
    border-color: #F5F7FB;
    border-width: 1px;
    border-style: solid;
    border-radius: 16px;
    color: #000000;
	height: calc(60% - 0px);
}

/* LOADER */
#divLoading .loader-wrapper {
    top: 40%;
    position: absolute;
    z-index: 1000;
    width: 100%;
}
#divLoading .loader-wrapper .loader {
    border: 6px solid #dedede !important;
    border-radius: 50%;
    border-top: 6px solid #999999 !important;
    width: 70px;
    height: 70px;
    margin: 0 auto;
    -webkit-animation: spin_loader 1s linear infinite;
    animation: spin_loader 1s linear infinite;
}
#divLoading .loader-wrapper .text {
    text-align: center;
    display: block;
    position: absolute;
    z-index: 9999;
    font-size: 22px;
    font-style: 600;
    letter-spacing: 3px;
    width: 100%;
    margin-top: 15px;
    color: #ffffff;
}


@-webkit-keyframes spin_loader {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin_loader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* FOOTER FINE SITO */
.footer {
  margin-top: auto;
  background-color: #282828;
  color: #f0f0f0;
  text-align: center;
  padding: 20px 5px;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
  margin: 2px 0;
  line-height: 1.2;
  font-size: 1em;
}

.footer a {
  color: #00aaff;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.divider {
  width: 80%;
  margin: 10px auto;
  border-top: 1px solid #ffffff;
  opacity: 0.3;
}

.logo {
  font-size: 2em;
  font-family: Impact, sans-serif;
  color: #ffffff;
  background-color: #ff5722;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: middle;
}

.logo sup {
  font-size: 0.5em;
  vertical-align: top;
}

.powered-by {
  font-size: 0.9em;
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
}

.speaker-icon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: block;
  transition: transform 0.5s ease-out, border 0.5s ease-out;
}

.speaker-icon.active {
  border: 30px solid #d1d1d180;
  transform: scale(1.2);
}

.content-section .audio-play {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  transition: transform 0.5s ease-out;
  border: none;
}

.content-section .audio-play:hover,
.speaker-icon:hover {
  background-color: transparent;
}

.content-section .audio-play.active {
  transform: scale(1.15);
}

:root {
  --active-color: #7a83d6;
  --inactive-color: #d1d1d1;
}


/* MEDIA */
@media (max-width: 600px) {
    .p-l-115 { padding-left: 0px !important }

    .h-full {
        max-width: 310px;
    }

    .info-form {
        flex-direction: column;
        height: auto; /* Altezza automatica basata sul contenuto */
        min-height: 110px; /* Altezza minima fissa adeguata per due elementi verticali */
    }

    .info-form label.control-label {
        min-width: 300px;
        text-align: left;
    }

    .info-form select, .info-form button {
        width: 100%;
        margin-bottom: 0;
    }
    
    .contact-box {
        padding: 15px;
    }
}

/* Animazione per il gradient (mantenuta dal CSS originale) */
@keyframes colorShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Media query: ridimensiona i box a 50% per schermi max 1024px */
@media (max-width: 1024px) {
    .box {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Media query: ridimensiona i box a 100% per schermi max 768px */
@media (max-width: 768px) {
    .box {
        flex: 1 1 100%;
        min-width: unset;
    }
}









.ri-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ri-popup-modal {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid #e9eef5;
  position: relative;
  overflow: hidden;
  animation: riPopupIn .18s ease-out;
  font-family: inherit;
}

@keyframes riPopupIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ri-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ri-popup-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ri-popup-header {
  padding: 20px 22px 10px 22px;
}

.ri-popup-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.ri-popup-subtitle {
  margin: 8px 0 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}

.ri-popup-body {
  padding: 10px 22px 14px 22px;
}

.ri-popup-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.ri-popup-textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ri-popup-textarea:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.ri-popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 20px 22px;
  border-top: 1px solid #f1f5f9;
}

.ri-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, opacity .15s ease, background .15s ease;
}

.ri-btn:active {
  transform: translateY(1px);
}

.ri-btn-secondary {
  background: #eef2f7;
  color: #334155;
}

.ri-btn-secondary:hover {
  background: #e2e8f0;
}

.ri-btn-primary {
  background: #0f172a;
  color: #ffffff;
}

.ri-btn-primary:hover {
  opacity: 0.92;
}

body.ri-popup-open {
  overflow: hidden;
}



.ri-toast-icon{
  width:42px;height:42px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #e9eef5;
  background:#f8fafc;
  color:#0f172a;
  flex:0 0 auto;
}
.ri-toast-icon svg{ width:22px;height:22px; display:block; }

