/* General */
body {
    background-color: #004C5B;
    color: #fff;
    font-size: 15px;
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
    display: block!important;
    height: 100vh;
}
body.index,
body.video {
    max-width: 100%;
    width: 100vw; 
}
button, 
.button, 
a.button, 
input[type=submit], 
input[type=reset], 
input[type=button], 
label[type=button] {
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff!important;
}

button:enabled:hover, 
.button:not([aria-disabled=true]):hover, 
input[type=submit]:enabled:hover, 
input[type=reset]:enabled:hover, 
input[type=button]:enabled:hover, 
label[type=button]:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000!important;
}
.question-button.ameco {
    border-color: #87E872;
    background-color: #87E872;
    color: #004C5B!important;
}

.question-button.renogroup {
    border-color: #c7e872;
    background-color: #c7e872;
    color: #004C5B!important;
}
.question-button[disabled] {
    background-color: #ccc; /* Cambia il colore del background */
    cursor: not-allowed; /* Modifica il cursore */
    opacity: 0.6; /* Rendi il pulsante semitrasparente */
}
ul {
    text-align: left;
    list-style: none;
}
body>footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #004C5B;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    margin-top: 0;
}
body.video>footer {
    display: none;
}
#language-form img {
    cursor: pointer;
}
.back-button,
.back-button:visited {
    border: 4px solid #fff;
    color: #fff;
    font-size: 50px;
    border-radius: 100%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 6px;
}

.back-button:hover {
    background-color: #fff;
    color: #004C5B;
}

.back-button:hover img {
    filter: invert(1);
}

.fullscreen-image {
    background-image: url('images/ameco-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

#timeout-modal {
    text-align: left;
}

.columns {
    display: flex;
}

.col-one {
    width: 35%;
}

/* Utilities */
.hidden {
    display: none;
}
.visible {
    display: block;
}
.disabled {
    pointer-events: none;
}

/* Header */
header {
    background-color: #004C5B!important;
    color: #fff;
    padding: 40px 20px 0!important;
    margin-bottom: 20px;
    border-bottom: 0!important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    width: 200px;
    text-align: right;
}
.logo img {
    width: 50px;
}
.logo-big img {
    width: 200px;
}
body.index header,
body.video header {
    display: none!important;
}

/* Body */
section {
    border: 0!important;
    margin-top: 1rem!important;
    padding-top: 0!important;
}

/* Video Html5 */
.video-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 20px); /* Riduci la larghezza tenendo conto del padding */
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}
button#play {
    background-color: #ff0000!important;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
}
button#play:hover {
    background-color: #ff0000!important;
    border: none;
    color: white!important;
    opacity: 0.8;
}

/* Funnel */
/* #pulsanti-funnel {
    margin-top: 20px;
} */
#pulsanti-funnel button {
    border-radius: 10px;
    font-size: 20px;
    margin: 5px 15px;
    width: 240px;
    height: 50px;
}
#pulsanti-funnel.disabled button {
    border: 1px solid grey!important;
    background-color: transparent!important;
}
#pulsanti-funnel.disabled a {
    color: grey;
    text-decoration: none;
}
#pulsanti-funnel.active a {
    color: #fff;
    text-decoration: none;
    display: block; /* Rende il link un elemento di blocco */
    width: 100%; /* Occupa il 100% della larghezza del pulsante */
    height: 100%; 
}
#pulsanti-funnel.active a:hover,
#pulsanti-funnel.active button:hover a {
    color: #004C5B;
}
#pulsanti-funnel.active button {
    border: 4px solid #fff!important;
    background-color: transparent!important;
    position: relative;
}
#pulsanti-funnel.active button:hover {
    border: 4px solid #fff!important;
    background-color: #fff!important;
    color: #004C5B!important;
}

/* Chat */
#chat-box {
    border: 1px solid #fff;
    background: #fff;
    color: #000;
    margin: 0 20px 30px;
    padding: 30px;
    border-radius: var(--standard-border-radius);
    text-align: left;
    max-height: 200px;
    overflow-y: scroll;
}

#chat-form {
    margin: 0 20px;
}

#chat-form textarea {
    width: 100%;
}

.calendar {
    background-color: #fff;
}

.title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-chat {
    display: flex;
    align-items: center;
}

.title-chat img.ameco {
    height: 78px;
}

.title-chat img.renogroup {
    margin-bottom: -5px;
    margin-right: 10px;
}

.title-chat h1 {
    font-weight: 300;
}

.time {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeout {
    background: #D0D8DB;
    color: #000;
    padding: 10px;
    border-radius: 10px;
}

.timeout span {
    color: red;
}

.title-empty,
.time {
    width: 25%;
}

.down-icon {
    margin-top: -30px;
    margin-bottom: -10px;
}

.down-icon img {
    filter: invert(1);
    height: 30px;
}

/* Tooltip che appare inizialmente e viene poi nascosto */
.tooltip {
    visibility: visible;
    width: 200px;
    background-color: grey;
    color: #fff;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: -61px;
    left: 50%;
    margin-left: -100px;
    opacity: 1;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip.hidden {
    visibility: hidden;
    opacity: 0;
}

.tooltip.visible {
    visibility: visible;
    opacity: 1;
}

/* Freccia del tooltip */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: grey transparent transparent transparent;
}

/* Loader */
.loader,
.loader-modal {
    display: none; /* Nascondi il loader inizialmente */
    width: 2.2em;
    height: 2.2em;
    position: relative;
    animation: spinRing 1500ms linear infinite;
    margin: 20px auto;
}
.loader::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    height: auto;
    width: auto;
    border: 5px solid #ffffff;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%,100% 80%);
    animation: spinRingInner 1500ms cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}
.loader-modal::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    height: auto;
    width: auto;
    border: 5px solid #AABCC6;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%,100% 80%);
    animation: spinRingInner 1500ms cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
}
@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spinRingInner {
    0%   { transform: rotate(-180deg); }
    50%  { transform: rotate(-160deg); }
    100% { transform: rotate(180deg); }
}

/* Modal Di entrata */
.modal {
    display: none; /* Nascondi il modale per impostazione predefinita */
    position: fixed; /* Fissato al centro della pagina */
    z-index: 1000; /* Sulla parte superiore */
    left: 0;
    top: 0;
    width: 100%; /* Larghezza piena */
    height: 100%; /* Altezza piena */
    overflow: auto; /* Attiva lo scorrimento se necessario */
    background-color: rgb(0,0,0); /* Colore di sfondo */
    background-color: rgba(0,0,0,0.4); /* Sfondo nero trasparente */
    color: #000;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Margine verticale */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Larghezza del contenuto */
    position: relative;
}

.modal-content p {
    background-color: #aabcc6;
    border-radius: 20px;
    padding: 50px;
    color: #5d686e; 
    text-align: left;
}

#modal-ok,
#timeout-ok {
    background: #aabcc6;
    color: #5d686e!important; 
    width: 200px;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Mobile */
@media (max-width: 780px) {
    #pulsanti-funnel button {
        width: 200px;
        font-size: 13px;
    }

    .title-wrap {
        flex-direction: column;
        margin: 0 20px;
    }

    .title-chat img {
        height: 50px;
    }

    .title-wrap h1 {
        font-size: 30px;
    }

    .time {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }
  }