*:focus {
    outline: none!important;
    box-shadow: 0 0 0 0.25rem rgba(137, 106, 67, 0.05)!important;
}

*:focus-visible {
    outline: 2px solid var(--website-primary)!important;
    outline-offset: 4px!important;
    border:4px!important;
    box-shadow: 0 0 0 0.25rem rgba(137, 106, 67, 0.1)!important;
}

h1, h2, h3, h4, h5, h6{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/**
WP
 */
.has-large-font-size {
    margin: 40px 0 20px;
    line-height: 1.2;
}

/*
.wp-block-list li {
    margin: 10px 0;
}

*/

ul.wp-block-list {
    list-style: none;
    padding-left: 0;
}

.wp-block-list li {
    margin: 10px 0;
    padding-left: 24px;
    position: relative;
}

.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('/wp-content/themes/theme-bs5-deverso/assets/images/li-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.shellOutput{
    margin: 20px auto;
    padding:20px;
    border-radius: 10px;
    background-color: #000;
    color: #fff;
    width: 1200px;
    max-height: 400px;
    overflow: auto;
}

.shellOutput code{
    color:#fff;
    font-size: 12px;
    white-space: nowrap;
}

.shellOutput .alert{
    font-size: 14px;
}



.container {
    max-width: var(--website-container-max-width);
}


.website-title{
    color: var(--website-color-txt-title);
    word-wrap: break-word;
    font-size: 2.625rem;
    line-height: 3rem;
    font-style: normal;
    font-weight: 500;
}



.website-text{
    color: var(--website-color-txt-body);
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 10px auto;
}

.website-content {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--website-color-txt-body);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.625rem;
    margin-top: 16px;
    margin-bottom: 16px;
}




/* ==========================================================================
   Font generali
   ========================================================================== */

.font-title{
    font-family: 'Erode', serif;;
}

.font-text{
    font-family: 'Source Sans 3', sans-serif;
}

.big-text{
    font-size: 2.625rem;
    line-height: 3rem;
}


/* ==========================================================================
   Stili generali
   ========================================================================== */
body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--website-color-txt-body);
    font-size: 1rem;
    max-width: var(--website-container-full-max-width);
    margin: 0 auto;
}


a {
    transition: all 0.3s ease;
}

.withoutTranslation{
    background-color: #ffff00!important;
    color: #000000!important;
}

/* ==========================================================================
   Header e Navigazione Accessibile
   ========================================================================== */

main#primary{
    margin-top: -1rem;
}




/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

.visually-hidden,
.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden:focus,
.visually-hidden-focusable:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 3000;
    width: auto;
    height: auto;
    padding: 10px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--website-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for better keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--website-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/*============================================================
 *
 * XXL  desktop large
 *
 */
@media (min-width: 1400px) {

}

/*============================================================
 *
 * XL   desktop
 *
 */
@media (max-width: 1399px) {

}

/*============================================================
 *
 * LG   small desktop
 *
 */

@media (max-width: 1199px) {

}

/*============================================================
 *
 * LG   ipadpro
 *
 */
@media (pointer:coarse) and (max-width: 1199px) {

}


/*============================================================
 *
 *  MD  ipad
 *
 */
@media (max-width: 991px) {

}


/*============================================================
 *
 *  SM smart-phone 576-767
 *  XS 0-567
 */
@media (max-width: 767px) {
    .website-title{
        font-size: 1.75rem;
        line-height: 1.2;
    }
    main#primary {
        margin-top: 0;
    }

}


/*============================================================
 *
 * XS   smartphone
 *
 */
@media (min-width: 10px)  and (max-width: 575px) {

}






/*============================================================
    BUTTONS LINK
 ============================================================*/

.btn-gradient {
    background: linear-gradient(135deg, var(--website-primary) 0%, var(--website-secondary) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-outline-gradient {
    background: transparent;
    color: var(--website-primary);
    border: 2px solid var(--website-primary);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-gradient:hover {
    background: linear-gradient(135deg, var(--website-primary) 0%, var(--website-secondary) 100%);
    color: white;
    border-color: transparent;
}

/*============================================================
    BUTTONS — btnStyle1 / btnStyle2
    Puntino prima e dopo il testo (::before / ::after).
    Hover: lo sfondo si riempie del colore opposto da sinistra a
    destra (gradient a doppia larghezza), il testo cambia colore.
    .btnStyle1 = sfondo scuro #2C2E35, testo bianco  -> hover bianco/scuro
    .btnStyle2 = sfondo bianco, testo #2C2E35        -> hover scuro/bianco
 ============================================================*/

.btnStyle1,
.btnStyle2 {
    --btn-dark: #2C2E35;
    --btn-light: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-wrap: nowrap;
    text-decoration: none;
    padding: 16px 28px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position 0.4s ease, color 0.4s ease;
}

/* Puntini prima e dopo il testo */
.btnStyle1::before,
.btnStyle1::after,
.btnStyle2::before,
.btnStyle2::after {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

/* btnStyle1: scuro -> bianco (riempimento da sinistra) */
.btnStyle1 {
    color: var(--btn-light);
    background-image: linear-gradient(to right, var(--btn-light) 50%, var(--btn-dark) 50%);
}
.btnStyle1:not(:disabled):hover,
.btnStyle1:not(:disabled):focus-visible {
    background-position: left center;
    color: var(--btn-dark);
}

/* btnStyle2: bianco -> scuro (riempimento da sinistra) */
.btnStyle2 {
    color: var(--btn-dark);
    background-image: linear-gradient(to right, var(--btn-dark) 50%, var(--btn-light) 50%);
}
.btnStyle2:not(:disabled):hover,
.btnStyle2:not(:disabled):focus-visible {
    background-position: left center;
    color: var(--btn-light);
}

/* Focus accessibile e stato disabled */
.btnStyle1:focus-visible,
.btnStyle2:focus-visible {
    outline: 2px solid var(--website-primary, #1D4434);
    outline-offset: 2px;
}
.btnStyle1:disabled,
.btnStyle2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Rispetta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .btnStyle1,
    .btnStyle2 { transition: none; }
}

/* ------------------------------------------------------------------ *
 * Pallini decorativi negli angoli (card-dot)
 * Utility globali: posizionano un pallino in un angolo del contenitore
 * (che deve avere position:relative). Versione chiara (--light, bianco)
 * e scura (--dark, nero).
 * ------------------------------------------------------------------ */
.card-dot-light--tl, .card-dot-light--tr, .card-dot-light--bl, .card-dot-light--br,
.card-dot-dark--tl,  .card-dot-dark--tr,  .card-dot-dark--bl,  .card-dot-dark--br {
    position: absolute;
    z-index: 1;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
}
.card-dot-light--tl, .card-dot-light--tr, .card-dot-light--bl, .card-dot-light--br { background: #fff; }
.card-dot-dark--tl,  .card-dot-dark--tr,  .card-dot-dark--bl,  .card-dot-dark--br  { background: #000; }

.card-dot-light--tl, .card-dot-dark--tl { top: 30px; left: 30px; }
.card-dot-light--tr, .card-dot-dark--tr { top: 30px; right: 30px; }
.card-dot-light--bl, .card-dot-dark--bl { bottom: 30px; left: 30px; }
.card-dot-light--br, .card-dot-dark--br { bottom: 30px; right: 30px; }

.bkg-ellipse-horizontal {
    background-image: url('/wp-content/themes/theme-bs5-deverso/assets/images/EllipseOriz.png');
    background-position: center center;
    background-repeat: repeat-y;
}

.bkg-ellipse-vertical {
    background-image: url('/wp-content/themes/theme-bs5-deverso/assets/images/EllipseVert.png');
    background-position: center center;
    background-repeat: repeat-x;
}
