/* ==========================================================================
   Easy Testimonials — stili pubblici
   Usa font-family e color in inherit per adattarsi al tema attivo.
   ========================================================================== */

/* ——— Form pubblico ——— */
.et-form {
    position: relative;
}

.et-field {
    display: block;
    position: relative;
    margin-bottom: 1em;
}

/* > label colpisce solo la label diretta del campo, non quelle dentro .et-stars-input */
.et-field > label {
    display: block;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    font-size: 1em !important;
    pointer-events: auto !important;
    margin-bottom: .3em;
    font-weight: 600;
    font-family: inherit;
    color: inherit;
}

.et-form input[type="text"],
.et-form input[type="email"],
.et-form textarea {
    display: block;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 100%;
    font: inherit;
    padding: .5em .75em;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    box-sizing: border-box;
}

.et-form input[type="text"]:focus,
.et-form input[type="email"]:focus,
.et-form textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.et-form button[type="submit"] {
    font: inherit;
    cursor: pointer;
    padding: .6em 1.6em;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    transition: background .18s, color .18s;
}

.et-form button[type="submit"]:hover,
.et-form button[type="submit"]:focus {
    background: currentColor;
    color: #fff;
}

.et-success {
    padding: .9em 1.2em;
    border-left: 4px solid currentColor;
    font-family: inherit;
}

.et-error {
    padding: .9em 1.2em;
    border-left: 4px solid #c0392b;
    color: #c0392b;
    font-family: inherit;
    margin-bottom: 1em;
}

/* ——— Stelle nel form (RTL radio trick) ——— */
.et-stars-input {
    display: flex;
    flex-direction: row-reverse;
    gap: .15em;
    width: max-content;
}

.et-stars-input input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.et-stars-input label {
    font-size: 1.9em;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
    font-weight: normal;
    margin-bottom: 0;
    transition: color .1s;
}

.et-stars-input input:checked ~ label,
.et-stars-input label:hover,
.et-stars-input label:hover ~ label {
    color: #f5a623;
}

/* ——— Wrapper slider ——— */
.et-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* ——— Track: lista card in fila ——— */
.et-slider-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

/* ——— Card ——— */
.et-card {
    flex: 0 0 var(--et-card-width, 300px);
    width: var(--et-card-width, 300px);
    padding: 1.4em 1.6em;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    color: inherit;
    box-sizing: border-box;
}

.et-card-stars {
    color: #f5a623;
    font-size: 1.1em;
    letter-spacing: .1em;
    margin-bottom: .55em;
    line-height: 1;
}

.et-card-text {
    margin: 0 0 1em;
    line-height: 1.65;
    font-style: italic;
    font-family: inherit;
}

.et-card-name {
    font-weight: 700;
    font-size: .875em;
    font-family: inherit;
}

/* ——— Frecce ——— */
.et-arrows {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1.1em;
}

.et-arrows.et-hidden {
    display: none;
}

.et-arrow {
    cursor: pointer;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1em;
    line-height: 1;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, color .18s;
    padding: 0;
}

.et-arrow:hover,
.et-arrow:focus {
    background: currentColor;
    color: #fff;
    outline: none;
}
