/*
 * Focus: manteniamo outline visibile per :focus-visible (tastiera),
 * nascondiamo solo per :focus:not(:focus-visible) (click mouse).
 * WCAG 2.1 SC 2.4.7 – Focus Visible
 */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

*:focus-visible {
    outline: 2px solid var(--website-primary);
    outline-offset: 4px;
    box-shadow: 0 0 0 0.25rem rgba(238, 100, 64, 0.15);
}

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;
}

/*
.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: 16px;
    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 {
    max-width: var(--website-container-max);
}


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


.website-title{
    font-family: "Roboto", sans-serif;
    color: var(--website-primary-dark);
    word-wrap: break-word;
    font-size: 3.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 4.5rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.website-title-big{
    font-size: 4rem;
    line-height: 5rem;
    font-weight: 500;
}

.website-title-small{
    font-size: 2.75rem;
    line-height: 3.55rem;
    font-weight: 500;
}


.website-subtitle{
    color: var(--website-secondary);
    font-size: 1.25rem;
    line-height: 1.8rem;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
}

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

.website-content {
    font-family: "Roboto", 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: "Roboto", sans-serif;
}

.font-text{
    font-family: "Roboto", sans-serif;
}

/* ==========================================================================
   Stili generali
   ========================================================================== */
body {
    font-family: "Roboto", sans-serif;
    color: var(--website-color-txt-body);
    font-size: 1.125rem;
    max-width: var(--website-container-max-width);
    margin: 0 auto;
}


a {
    transition: all 0.3s ease;
}

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

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






/* ==========================================================================
   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 — regola unica definita sopra, qui solo per link e bottoni */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--website-primary);
    outline-offset: 4px;
    border-radius: 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;
    }
}


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

/*
    bkg: primary
    color: white
    border: primary

    hover:
    bkg: transparent
    color: primary
    border: primary

    no animation
 */
.btnStyle1{
    display: inline-block;
    background: var(--website-primary);
    border: 1px solid var(--website-primary);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.7px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease-in;
    padding: 12px 24px;
}
.btnStyle1 svg{
    width:16px;
    margin-top: -2px;
}

.btnStyle1:not(:disabled):hover{
    display: inline-block;
    background: transparent;
    color: var(--website-primary);
    transition: all 0.3s ease-out;
}

/*
    bkg: transparent
    color: #333
    border: #333

    hover:
    bkg: primary
    color: #fff
    border: primary

    animation
 */

.btnStyle2 {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.70px;
    text-wrap: nowrap;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid var(--website-color-txt-title);
    background-color: transparent;
    color: var(--website-color-txt-title);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btnStyle2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--website-primary);
    z-index: -1;
    transition: width 0.3s ease;
}

.btnStyle2:not(:disabled):hover,
.btnStyle2:not(:disabled):focus {
    color: #fff;
    border-color: var(--website-primary);
}

.btnStyle2:not(:disabled):hover::before,
.btnStyle2:not(:disabled):focus::before {
    width: 100%;
}

.btnStyle2 svg {
    transition: color 0.3s ease;
}

.btnStyle2:not(:disabled):hover svg,
.btnStyle2:not(:disabled):focus svg {
    color: #fff;
}

/*
    bkg: primary
    color: white
    border: primary

    hover:
    bkg: primary-dark
    color: white
    border: primary-dark

    animation
 */
.stdButton,
.btnStyle3 {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    text-wrap: nowrap;
    text-decoration: none;
    padding: 8px 24px;
    border: 1px solid var(--website-primary);
    border-radius: 24px;
    background-color: var(--website-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

section.section-slider .stdButton{
    font-size: 1.2rem;
    padding: 16px 24px;
}

.stdButton::before,
.btnStyle3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--website-primary-dark);
    z-index: -1;
    transition: width 0.3s ease;
}

.stdButton:not(:disabled):hover,
.stdButton:not(:disabled):focus,
.btnStyle3:not(:disabled):hover,
.btnStyle3:not(:disabled):focus {
    color: #fff;
    border-color: var(--website-primary-dark);
}

.stdButton:focus,
.btnStyle3:focus {
    outline: 2px solid var(--website-primary-dark);
    outline-offset: 2px;
}

.stdButton:not(:disabled):hover::before,
.stdButton:not(:disabled):focus::before,
.btnStyle3:not(:disabled):hover::before,
.btnStyle3:not(:disabled):focus::before {
    width: 100%;
}

.stdButton svg,
.btnStyle3 svg {
    transition: color 0.3s ease;
}

.stdButton:not(:disabled):hover svg,
.stdButton:not(:disabled):focus svg,
.btnStyle3:not(:disabled):hover svg,
.btnStyle3:not(:disabled):focus svg {
    color: #fff;
}


/*
    bkg: transparent
    color: white
    border: white

    hover:
    bkg: white
    color: primary
    border: white

    animation
 */


.btnStyle4 {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.70px;
    text-wrap: nowrap;
    text-decoration: none;
    padding: 15px 24px;
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btnStyle4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s ease;
}

.btnStyle4:not(:disabled):hover,
.btnStyle4:not(:disabled):focus {
    color: var(--website-primary);
}

.btnStyle4:not(:disabled):hover::before,
.btnStyle4:not(:disabled):focus::before {
    width: 100%;
}

.btnStyle4 svg {
    transition: color 0.3s ease;
}

.btnStyle4:not(:disabled):hover svg,
.btnStyle4:not(:disabled):focus svg {
    color: var(--website-primary);
}

/*
    bkg: transparent
    color: #333
    border: transparent

    hover:
    bkg: primary
    color: white
    border: primary

    animation
 */


.btnStyle5 {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.70px;
    text-wrap: nowrap;
    text-decoration: none;
    padding: 15px 24px;
    border: 1px solid transparent;
    background-color: transparent;
    text-transform: uppercase;
    color: var(--website-color-txt-body);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btnStyle5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--website-primary-dark);
    z-index: -1;
    transition: width 0.3s ease;
}

.btnStyle5:not(:disabled):hover,
.btnStyle5:not(:disabled):focus {
    color: #fff;
    border: 1px solid var(--website-primary-dark);
}

.btnStyle5:not(:disabled):hover::before,
.btnStyle5:not(:disabled):focus::before {
    width: 100%;
}

.btnStyle5 svg {
    transition: color 0.3s ease;
}

.btnStyle5:not(:disabled):hover svg,
.btnStyle5:not(:disabled):focus svg {
    color: #fff;
}



ul[class*=trx_addons_list][class*=_circled] {
    margin: 0;
    padding: 0;
}

ul[class*=trx_addons_list] {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul[class*=trx_addons_list][class*=_circled]>li {
    padding-bottom: 1rem;
    line-height: 1;
    list-style-type: none;
    font-size: 1.2rem;
}

ul[class*="trx_addons_list"][class*="_circled"][class*="with_icon"]>li:before {
    border-color: var(--website-secondary);
    color: var(--website-secondary);
    background-color: rgba(255,255,255,0.1);
    /*
    border-color: var(--website-secondary);
    background-color: var(--website-secondary);
    color: var(--website-primary);

     */
    width: 32px;
    height:32px;
    display: inline-flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right:8px;
}

ul[class*=trx_addons_list][class*=_circled]>li:before {
    font-family: "bootstrap-icons";
    content: "\F26A";
    border: 2px solid;
    top: 0rem;
    left: -3rem;
    letter-spacing: 0;
}

/* ==========================================================================
   Bottoni personalizzati
   ========================================================================== */
.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: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

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


/* ==========================================================================
   Miglioramenti istituzionali e accessibilità
   ========================================================================== */

/* Spaziatura sezioni coerente e ritmo verticale */
section[id] {
    scroll-margin-top: 80px;
}

/* Link con underline visibile per accessibilità (WCAG 1.4.1) */
.website-content a,
.website-text a,
.contentHtml a {
    text-decoration: underline;
    text-decoration-color: var(--website-primary-light);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.website-content a:hover,
.website-text a:hover,
.contentHtml a:hover {
    text-decoration-color: var(--website-primary);
}

/* Selezione testo brandizzata */
::selection {
    background-color: rgba(238, 100, 64, 0.15);
    color: var(--website-accent);
}

/* Smooth scroll con rispetto per prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles per aspetto istituzionale */
@media print {
    .site-header,
    footer,
    #btn-back-to-top,
    .deversoOverlayLoadingPage,
    .cta-mobile,
    .header-cta {
        display: none !important;
    }

    main {
        padding: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
}


/* ==========================================================================
   Stili condivisi CF7 forms (newsletter + contatti)
   ========================================================================== */

.newsletter-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-cf7-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.newsletter-cf7-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-cf7-form__field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--website-color-txt-title);
}

.newsletter-cf7-form__field input,
.newsletter-cf7-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #C5C5C5;
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    color: var(--website-color-txt-title);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-cf7-form__field input:focus,
.newsletter-cf7-form__field textarea:focus {
    outline: none;
    border-color: var(--website-primary);
    box-shadow: 0 0 0 3px rgba(238, 100, 64, 0.12);
}

.newsletter-cf7-form__field input::placeholder,
.newsletter-cf7-form__field textarea::placeholder {
    color: #888;
}

.newsletter-cf7-form__field textarea {
    min-height: 160px;
    resize: vertical;
}

.newsletter-cf7-form__submit {
    background: var(--website-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 16px 32px !important;
    font-family: "Roboto", sans-serif;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.newsletter-cf7-form__submit:hover {
    background: var(--website-primary-dark) !important;
    transform: translateY(-1px);
}

.newsletter-cf7-form__submit:focus-visible {
    outline: 2px solid var(--website-primary);
    outline-offset: 2px;
}

.newsletter-cf7-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.newsletter-cf7-form .wpcf7-not-valid-tip {
    font-size: 0.8125rem;
    color: #dc3545;
    margin-top: 4px;
}

.newsletter-cf7-form .wpcf7-response-output {
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-top: 16px;
}

.newsletter-cf7-form .wpcf7-spinner {
    display: none;
}

@media (min-width: 576px) {
    .newsletter-cf7-form__row {
        grid-template-columns: 1fr 1fr;
    }
}
