html
{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

body
{
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background-image: url('../img/api_central_background.jpg');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: Paytone One;
  overflow: auto;
  color: white;
  display: flex;
  flex-direction: column;
}

a
{
    color: #4497e5 !important;
    text-decoration: none;
}

a:hover
{
    color: white !important;
    text-decoration: none;
}

footer
{
    margin-top: auto;
}

label
{
    font-weight: bold;
    margin-bottom: 10px;
    color: gold;
}

tfoot { background-color: lightgrey; }

tr:nth-child(even) { background-color: #80b3e4; }

/* Override Bootstrap table-striped per tabelle personalizzate */
/* Righe DISPARI (Bianco Gradiente) */
.table.pers-table-striped > tbody > tr:nth-child(odd) > td
{
    background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%) !important;
    color: black !important;
    box-shadow: none !important; /* Rimuoviamo l'ombra che copre il gradiente */
}

/* Righe PARI (Blu Gradiente) */
.table.pers-table-striped > tbody > tr:nth-child(even) > td
{
    background: linear-gradient(to bottom, #4a91d1e6 10%, #255a8ee6 90%) !important;
    color: white !important;
    box-shadow: none !important; /* Fondamentale rimuoverlo */
}

ul
{
  list-style: none; /* Remove default bullets */
}

ul li::before
{
  content: "\2022";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
  color: #4497e5;
  font-weight: bold;
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 1em; /* Also needed for space (tweak if needed) */
  margin-left: -1em; /* Also needed for space (tweak if needed) */
}

datalist
{
    display: flex;
    justify-content: space-between;
    color: red;
    width: 50%;
}

.pers-bg-color-white { background-color: white !important; }
.pers-bg-color-blue { background-color: #12283d !important; }
.pers-bg-color-lightblue { background-color: #3678b7 !important; }
.pers-bg-color-lighterblue { background-color: #4497e5 !important; }
.pers-bg-color-lighterblue-gradient { background: linear-gradient(to bottom, #4a91d1e6 10%, #255a8ee6 90%) !important; }
.pers-bg-color-lighterblue2 { background-color: #80b3e4 !important; }
.pers-bg-color-lighterblue5 { background-color: #dae5ef !important; }
.pers-bg-color-green { background-color: #00ad0d !important; }
.pers-bg-color-green-gradient { background: linear-gradient(to bottom, #2bd53a 0%, #007008 100%); }
.pers-bg-color-red { background-color: #cc0000 !important; }
.pers-bg-color-red-gradient { background: linear-gradient(to bottom, #f20000, #8b0000); }
.pers-bg-color-bronze { background-color: #cd7f32 !important; }
.pers-bg-color-silver { background-color: silver !important; }
.pers-bg-color-gold { background-color: gold !important; }
.pers-bg-color-goldenrod { background-color: goldenrod !important; }
.pers-bg-color-lightgrey { background-color: lightgrey !important; }

.pers-text-shadow-black { text-shadow: 2px 1px 1px black;}

.pers-text-color-white { color: white !important; }
.pers-text-color-blue { color: #12283d !important; }
.pers-text-color-lightblue { color: #3678b7 !important; }
.pers-text-color-lighterblue { color: #4497e5 !important; }
.pers-text-color-lighterblue2 { color: #80b3e4 !important; }
.pers-text-color-green { color: #00ad0d !important;}
.pers-text-color-gold { color: gold !important;}
.pers-text-color-goldenrod { color: goldenrod !important;}
.pers-text-color-red { color: #cc0000 !important;}
.pers-text-color-darkred { color: darkred !important;}
.pers-text-color-bronze { color: #cd7f32 !important;}
.pers-text-color-silver { color: silver !important;}

.pers-font-size-1-vh { font-size: 1vh !important; }
.pers-font-size-1p5-vh { font-size: 1.5vh !important; }
.pers-font-size-1p75-vh { font-size: 1.75vh !important; }
.pers-font-size-2-vh { font-size: 2vh !important; }
.pers-font-size-2p5-vh { font-size: 2.5vh !important; }
.pers-font-size-3-vh { font-size: 3vh !important; }
.pers-font-size-4-vh { font-size: 4vh !important; }
.pers-font-size-5-vh { font-size: 5vh !important; }
.pers-font-size-6-vh { font-size: 6vh !important; }
.pers-font-size-7-vh { font-size: 7vh !important; }
.pers-font-size-8-vh { font-size: 8vh !important; }
.pers-font-size-9-vh { font-size: 9vh !important; }
.pers-font-size-10-vh { font-size: 10vh !important; }
.pers-font-size-11-vh { font-size: 11vh !important; }
.pers-font-size-12-vh { font-size: 12vh !important; }

.pers-col-12 { width: 100%; }
.pers-col-6 { width: 50%; }
.pers-col-4 { width: 33.3333%; }
.pers-col-3 { width: 25%; }
.pers-col-2 { width: 16.6666%; }
.pers-col-1 { width: 8.8888%; }

.pers-border-radius-3 { border-radius: 3px !important; }
.pers-border-radius-5 { border-radius: 5px !important; }
.pers-border-radius-10 { border-radius: 10px !important; }

.pers-zoom_1p1 { zoom: 1.1; }
.pers-zoom_1p2 { zoom: 1.2; }
.pers-zoom_1p3 { zoom: 1.3; }
.pers-zoom_1p4 { zoom: 1.4; }
.pers-zoom_1p5 { zoom: 1.5; }
.pers-zoom_1p6 { zoom: 1.6; }
.pers-zoom_1p7 { zoom: 1.7; }
.pers-zoom_1p8 { zoom: 1.8; }
.pers-zoom_1p9 { zoom: 1.9; }
.pers-zoom_2 { zoom: 2; }

.pers-register-page .grecaptcha-badge,
.pers-login-page .grecaptcha-badge
{
    bottom: 100px !important;
}

.pers-table-title
{ 
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
    border-bottom-width: 0px !important;
}

.pers-table-row-no-border { border-style: hidden !important; }

table.pers-table-line-height-3 > tbody > tr { line-height: 3; }

.pers-cursor-pointer { cursor: pointer; }

.table-responsive
{
    padding: 0;
}

.pers-background-image
{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: auto;
    height: 80vh;
    border-style: solid;
    border-color: black;
    border-width: 1vh;
}

.pers-title-home-row
{
    background: transparent;
}

.pers-title-home-wrapper
{
    text-align: center;
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.pers-header-title-link
{
    text-decoration: none !important;
    color: white !important;
}

.pers-header-title
{
    font-size: 6vh;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.pers-header-subtitle
{
    font-size: 2.5vh;
    margin: 10px 0 0 0;
    padding: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.pers-zoom-hover
{
    display: inline-block;
    transition: transform 1s;
}

.pers-zoom-hover:hover
{
    transform: scale(1.2); 
}

.pers-main-content
{
    width: 100%;
    min-height: 70vh;
}

.pers-edit-module
{
    background-color: #4497e5 !important;
    border-radius: 5px;
}

#terms-and-privacy-flag
{
    zoom: 1.2;
    border-width: 2px;
    cursor: pointer;
}

.pers-column-lable-large
{
    color: white;
    font-size: 6vh !important;
    font-weight: bold;
}

.pers-column-lable
{
    color: white;
    font-size: 5vh !important;
    font-weight: bold;
}

.pers-column-lable-small
{
    color: white;
    font-size: 3vh !important;
    font-weight: bold;
}

.pers-form-field
{
    padding: 20px;
    text-align: center;
    font-size: 3vh;
}

.pers-btn-xlarge
{
  text-decoration: none;
  border: 1px solid rgb(230, 230, 230);
  position: relative;
  overflow: hidden;
  min-width: 400px;
  color: white !important;
  font-size: 5vh;
}

.pers-btn-large
{
  text-decoration: none;
  border: 1px solid rgb(230, 230, 230);
  position: relative;
  overflow: hidden;
  min-width: 300px;
  color: white !important;
  font-size: 4vh;
}

.pers-btn
{
  text-decoration: none;
  border: 1px solid rgb(230, 230, 230);
  position: relative;
  overflow: hidden;
  min-width: 250px;
  color: white !important;
  font-size: 3vh;
}

.pers-btn-small
{
  text-decoration: none;
  border: 1px solid rgb(230, 230, 230);
  position: relative;
  overflow: hidden;
  width: 150px;
  max-width: 100%;
  color: white !important;
  font-size: 2vh;
}

.pers-btn-xsmall
{
  text-decoration: none;
  border: 1px solid rgb(230, 230, 230);
  position: relative;
  overflow: hidden;
  width: 120px;
  max-width: 100%;
  color: white !important;
  font-size: 2vh;
}

.pers-btn-square-small
{
  text-decoration: none;
  border: 1px solid rgb(230, 230, 230);
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 50px;
  color: white !important;
  font-size: 2vh;
}

.pers-btn:hover, .pers-btn-small:hover, .pers-btn-xsmall:hover, .pers-btn-square-small:hover, .pers-btn-large:hover, .pers-btn-xlarge:hover, .pers-transparent-button:hover
{
  box-shadow: 1px 1px 25px 10px rgba(230, 230, 230, 0.4);
}

.pers-btn:before, .pers-btn-small:before, .pers-btn-xsmall:before, .pers-btn-square-small:before, .pers-btn-large:before, .pers-btn-xlarge:before, .pers-transparent-button:before
{
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(230, 230, 230, 0.4),
    transparent
  );
  transition: all 650ms;
}

.pers-btn:hover:before, .pers-btn-small:hover:before, .pers-btn-xsmall:hover:before, .pers-btn-square-small:before, .pers-btn-large:hover:before, .pers-btn-xlarge:hover:before, .pers-transparent-button:before
{
  left: 100%;
}

.pers-transparent-button
{
    background-color: transparent !important;
    text-decoration: none;
    color: white;
    border: hidden;
    border-radius: 200px;
    cursor: pointer;
}

.pers-unselectable
{
    user-select: none;
    pointer-events: none;
}

.pers-pre-line { white-space: pre-line; }

.pers-full-height
{
    width: auto;
    height: 100%;
}

.pers-notify
{
    position: fixed;
    width: 80vw;
    height: auto;
    max-height: 80vh;
    top: 10vh;
    left: 10vw;
    color: white;
    background-color: #00000088;
    border-radius: 10px;
    z-index: 1;
}

.pers-notify-title-height
{
    max-height: 10vh;
}

.pers-notify-body-height
{
    height: auto;
    max-height: 70vh;
}

.pers-notify-body-height-full
{
    height: 70vh;
    max-height: 70vh;
}

.pers-notify-in-left-fast
{
    animation-name: NotifyInLeftAnimation;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

.pers-notify-in-left
{
    animation-name: NotifyInLeftAnimation;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

.pers-notify-in-left-slow
{
    animation-name: NotifyInLeftAnimation;
    animation-duration: 10s;
    animation-fill-mode: forwards;
}

.pers-notify-in-left-stay
{
    animation-name: NotifyInLeftStayAnimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.pers-notify-in-right-fast
{
    animation-name: NotifyInRightAnimation;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

.pers-notify-in-right
{
    animation-name: NotifyInRightAnimation;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

.pers-notify-in-right-slow
{
    animation-name: NotifyInRightAnimation;
    animation-duration: 10s;
    animation-fill-mode: forwards;
}

.pers-notify-out
{
    animation-name: NotifyOutAnimation;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

#pers-buffering-icon-wrapper
{
    position: fixed;
    z-index: 2;
    top: calc(50vh - 40px);
    left: calc(50vw - 40px);
}

#pers-buffering-icon
{
    color: white;
    animation: spin 3s linear infinite;
}

.pers-loading-icon
{
    color: #00ad0d;
    animation: spin 2s linear infinite;
}

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

.pers-api-icons-container
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.pers-api-icon-wrapper
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.pers-api-icon-wrapper:hover
{
    transform: scale(1.1);
}

.pers-api-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-color: rgba(52, 120, 183, 0.2);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pers-api-icon-wrapper:hover .pers-api-icon
{
    background-color: rgba(52, 120, 183, 0.4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 1);
}

.pers-api-text
{
    font-size: 1.8vh;
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.pers-api-section
{
    background-color: rgba(18, 40, 61, 0.85);
    padding: 0;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.pers-api-section-title
{
    background: linear-gradient(to bottom, #4a91d1e6 10%, #255a8ee6 90%);
    padding: 20px;
    margin-bottom: 20px;
}

.pers-api-section-title h2
{
    margin: 0 !important;
    font-size: 3vh !important;
}

.pers-api-section-content
{
    max-height: 10000px;
    overflow: hidden;
    transition: max-height 0.1s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 1;
}

.pers-api-section-content-hidden
{
    max-height: 0;
    opacity: 0;
    transition: max-height 0.1s ease-in-out, opacity 0.4s ease-in-out;
}

.pers-api-icons-container
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px 20px 20px;
}

.pers-table-striped
{
    border-radius: 10px !important;
    overflow: hidden;
}

.pers-table-striped thead tr
{
    background-color: #12283d !important;
}

.pers-table-striped thead th
{
    background-color: #12283d !important;
    color: gold !important;
    padding: 15px !important;
}

.pers-table-striped tfoot tr
{
    background-color: rgba(52, 120, 183, 0.7) !important;
}

.pers-table-striped tfoot td
{
    background-color: rgba(52, 120, 183, 0.7) !important;
    color: white !important;
    padding: 15px !important;
}

.pers-table-striped tbody td
{
    padding: 15px !important;
}

.pers-table-striped tbody tr:nth-child(odd)
{
    background-color: white !important;
    color: black !important;
}

.pers-table-striped tbody tr:nth-child(odd):hover
{
    background-color: #dae5ef !important;
    color: black !important;
}

.pers-table-striped tbody tr:nth-child(even)
{
    background-color: rgba(54, 120, 183, 0.85) !important;
    color: white !important;
}

.pers-table-striped tbody tr:nth-child(even):hover
{
    background-color: #3678b7 !important;
    color: white !important;
}

.pers-table-wrapper
{
    padding: 0;
}

/* Ensure no extra gap after the pricing table inside the section */
.pers-api-section .pers-table-wrapper
{
    padding-bottom: 0 !important;
}

/* Keep normal spacing for section titles, but remove for pricing only */
.pers-pricing-section .pers-api-section-title
{
    margin-bottom: 0 !important;
}

.pers-api-section table,
.pers-api-section table.pers-table-striped
{
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* DataTables override per pers-table-striped */
.pers-api-section .dt-container
{
    color: white;
}

.pers-api-section .dt-container .dt-length,
.pers-api-section .dt-container .dt-search,
.pers-api-section .dt-container .dt-info,
.pers-api-section .dt-container .dt-paging
{
    padding: 10px 15px;
}

.pers-api-section .dt-container .dt-length label,
.pers-api-section .dt-container .dt-search label
{
    color: white !important;
}

.pers-api-section .dt-container .dt-length select,
.pers-api-section .dt-container .dt-search input
{
    background-color: #12283d;
    color: white;
    border: 1px solid #3678b7;
    border-radius: 5px;
    padding: 5px 10px;
}

.pers-api-section .dt-container .dt-paging .dt-paging-button
{
    color: white !important;
    background-color: transparent !important;
    border: 1px solid #3678b7 !important;
    border-radius: 5px !important;
    margin: 0 2px;
}

.pers-api-section .dt-container .dt-paging .dt-paging-button.current
{
    background: linear-gradient(to bottom, #4a91d1e6 10%, #255a8ee6 90%) !important;
    color: white !important;
}

.pers-api-section .dt-container .dt-paging .dt-paging-button:hover
{
    background-color: #3678b7 !important;
    color: white !important;
}

.pers-api-section .dt-container .dt-paging .dt-paging-button.disabled
{
    color: #666 !important;
    border-color: #333 !important;
}

/* Modifica alla classe base per evitare overflow */
.laser-text
{
    position: relative;
    display: inline-block;
    padding: 0 150px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    max-width: 100%; /* Impedisce al contenitore di superare lo schermo */
}

/* Media Query per Mobile (Smartphone) */
@media (max-width: 767px)
{
    .pers-header-title
    {
        font-size: 4vh !important; /* Riduce il titolo principale */
    }

    .pers-header-subtitle
    {
        font-size: 1.8vh !important; /* Riduce il sottotitolo */
    }

    .laser-text
    {
        padding: 0 40px !important; /* Riduce lo spazio per i raggi su mobile */
    }

    .laser-text::before,
    .laser-text::after
    {
        width: 30px !important; /* Accorcia i raggi su mobile */
        height: 3px !important; /* Assottiglia i raggi su mobile */
    }

    .pers-api-section-title
    {
        padding: 15px !important; /* Riduce il padding su mobile */
    }

    .pers-api-section-title h2
    {
        font-size: 2.2vh !important; /* Riduce il titolo API */
    }

    .pers-language-tab-btn
    {
        padding: 10px 12px !important; /* Riduce padding pulsanti linguaggio */
        font-size: 0.85rem !important; /* Riduce font size pulsanti */
    }

    .pers-api-icons-container
    {
        gap: 10px !important; /* Riduce il gap tra le icone su mobile */
    }

    .pers-api-icon-wrapper
    {
        flex: 0 0 calc(50% - 5px) !important; /* Forza 2 icone per riga su mobile */
        max-width: calc(50% - 5px) !important;
    }
}

/* Base comune per entrambi i raggi (Mantieni questa) */
.laser-text::before,
.laser-text::after
{
    content: "";
    position: absolute;
    top: 50%;
    width: 120px;
    height: 5px;
    background: #00f2ff;
    transform: translateY(-50%);
    box-shadow: 0 0 8px #00f2ff, 0 0 15px #00f2ff;
}

/* Raggio a sinistra */
.laser-text::before
{
    left: 0;
    background: linear-gradient(to right, transparent, #00f2ff);
}

/* Raggio a destra */
.laser-text::after
{
    right: 0;
    background: linear-gradient(to left, transparent, #00f2ff);
}

@keyframes pulse-laser
{
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.laser-text::before, .laser-text::after
{
    animation: pulse-laser 2s infinite ease-in-out;
}

/* API Documentation Code Examples Styling */
.pers-code-examples-container
{
    background-color: rgba(18, 40, 61, 0.85);
    border-radius: 10px;
    overflow: hidden;
}

.pers-code-examples-tabs-header
{
    display: flex;
    gap: 0;
    background-color: rgba(54, 120, 183, 0.9);
    flex-wrap: wrap;
    justify-content: center;
}

.pers-language-tab-btn
{
    color: gold;
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pers-language-tab-btn:hover
{
    color: white;
    background-color: rgba(18, 40, 61, 0.6);
}

.pers-language-tab-btn-active
{
    color: white;
    background-color: rgba(18, 40, 61, 0.85);
}

.pers-code-examples-content
{
    padding: 20px;
}

.pers-language-tab-content
{
    display: none;
    text-align: left;
}

.pers-language-tab-content-active
{
    display: block;
}

.pers-code-example-pre
{
    background-color: #12283d;
    color: white;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}