/*!
Theme Name: ClickTax
Theme URI: https://clicktax.it/
Author: VersoWP
Author URI: https://versowp.com/
Description: Tema WordPress progettato per rappresentare i servizi di ClickTax.IT
Version: 1.0.36
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.5
Requires PHP: 7.0
Tested up to: 6.9
Text Domain: clicktex
Template: blocksy
Tags: accountant, business-website
*/

/* 1. Set the parent containers to create a local stacking context.
      This ensures z-index: -1 stays behind the text but above the page background. */
h1, h2, h3, h4 {
    position: relative;
    isolation: isolate;
}

/* 2. Style the highlighted word container */
.highlight {
    position: relative;
    display: inline-block;
    color: inherit;
}

/* 3. The actual highlighter effect using a pseudo-element */
.highlight::before {
    content: "";
    position: absolute;
    top: -5px;
    bottom: -0px;
    left: -15px;
    right: -10px;
    background-color: var(--theme-palette-color-1);
    z-index: -1; 
    mix-blend-mode: multiply; 
    border-radius: 30px;
    transform: rotate(-2.5deg);
    pointer-events: none;
}


/* --- BUTTON INTERACTION GROUP --- */

/* .ct-button, .ct-button-ghost */
.ct-button, 
.ct-button-ghost {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Create a linear gradient background for the filling effect */
    background-image: linear-gradient(to right, var(--hover-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease !important;
}

/* .arrow-primary */
.ct-button.arrow-primary,
.ct-button-ghost.arrow-primary {
    --hover-color: var(--theme-palette-color-1);
}

/* .arrow-secondary */
.ct-button.arrow-secondary,
.ct-button-ghost.arrow-secondary {
    --hover-color: var(--theme-palette-color-2);
}

/* .ct-button:hover */
.ct-button:hover,
.ct-button-ghost:hover {
    /* Slide the gradient to fill from left to right */
    background-position: 0% 0;
}

/* .ct-icon */
.ct-button .ct-icon,
.ct-button-ghost .ct-icon {
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* .cls-3 */
.ct-button svg#Livello_1 .cls-3,
.ct-button-ghost svg#Livello_1 .cls-3 {
    transition: fill 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-button:hover svg#Livello_1 .cls-3,
.ct-button-ghost:hover svg#Livello_1 .cls-3 {
    fill: var(--theme-palette-color-2) !important;
}

/* .cls-2 */
.ct-button svg#Livello_1 .cls-2,
.ct-button-ghost svg#Livello_1 .cls-2 {
    transition: fill 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-button:hover svg#Livello_1 .cls-2,
.ct-button-ghost:hover svg#Livello_1 .cls-2 {
    fill: var(--theme-palette-color-1) !important;
    animation: arrowScrollIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- ANIMATIONS --- */

@keyframes arrowScrollIn {
    0% { transform: translateX(0); opacity: 1; }
    45% { transform: translateX(25px); opacity: 0; }
    46% { transform: translateX(-25px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* --- END BUTTON INTERACTION GROUP --- */

/* --- GREENSFHIFT TABS STICKY COMPATIBILITY --- */

/* .gspb-tabs, .t-panel-container, .gswipertabs, .swiper-wrapper, .t-panel.active */
.gspb-tabs,
.t-panel-container,
.gswipertabs,
.swiper-wrapper,
.t-panel.active {
    overflow: visible !important;
}

/* --- END GREENSFHIFT TABS STICKY COMPATIBILITY --- */


/* ============================================================
   START: GREENSHIFT: TABS & ACCORDION RENDERING FIX
   ============================================================ */

.gspb-tabs .gs-accordion-item.gsopen .gs-accordion-item__content {
    max-height: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================================
   END: GREENSHIFT: TABS & ACCORDION RENDERING FIX
   ============================================================ */
   
/* ============================================================
   START: FOOTER CUSTOM STYLING (Blocksy Type-1)
   ============================================================ */

/* 1. Footer Widget Titles: Adjust font size, colors and add brand underline */
[data-footer*="type-1"] .ct-footer [data-row*="middle"] .widget_nav_menu .widget-title {
    font-size: 26px; /* Increases title scale for better hierarchy */
    border-bottom: 2px solid var(--theme-palette-color-1); /* Brand accent line */
    color: var(--theme-palette-color-1); /* Primary brand color */
}

/* 2. Footer Menu Links: Set line height for better readability and vertical spacing */
[data-footer*="type-1"] .ct-footer [data-row*="middle"] .widget_nav_menu div {
    line-height: 2em; /* Ensures clean spacing between menu items */
}

/* ============================================================
   END: FOOTER CUSTOM STYLING
   ============================================================ */